Merge pull request #98 from janspeller/bugfix/ISSUE-94

Fix sending Location in Telegram Plugin (Issue #94)
This commit is contained in:
Bastian Schroll 2022-05-23 06:07:48 +02:00 committed by GitHub
commit fc39b15d54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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: |

View file

@ -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