mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
Merge pull request #98 from janspeller/bugfix/ISSUE-94
Fix sending Location in Telegram Plugin (Issue #94)
This commit is contained in:
commit
fc39b15d54
6
.github/workflows/run_pytest.yml
vendored
6
.github/workflows/run_pytest.yml
vendored
|
|
@ -8,16 +8,16 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
python-version: [3.7, 3.8, 3.9, 3.10.2]
|
||||
python-version: ['3.7', '3.8', '3.9', '3.10']
|
||||
runs-on: ${{matrix.os}}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Set up Python ${{matrix.python-version}} at ${{matrix.os}}
|
||||
uses: actions/setup-python@v1
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: ${{matrix.python-version}}
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ class BoswatchPlugin(PluginBase):
|
|||
if bwPacket.get("lat") is not None and bwPacket.get("lon") is not None:
|
||||
logging.debug("Found coordinates in packet")
|
||||
(lat, lon) = (bwPacket.get("lat"), bwPacket.get("lon"))
|
||||
self._sendMessage(lat, lon)
|
||||
self._sendLocation(lat, lon)
|
||||
|
||||
def zvei(self, bwPacket):
|
||||
"""!Called on ZVEI alarm
|
||||
|
|
|
|||
Loading…
Reference in a new issue