Fix sending Location in Telegram Plugin (Issue #94)

This commit is contained in:
Jan Speller 2022-05-21 16:44:12 +02:00
parent a74f28150d
commit 39a34f7c24

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