"fix mqtt push update issue"

This commit is contained in:
Manuel Fritsch 2021-03-14 17:40:44 +01:00
parent 12857c73ef
commit 2a018fb731
2 changed files with 4 additions and 2 deletions

View file

@ -1 +1 @@
__version__ = "4.0.0.32"
__version__ = "4.0.0.33"

View file

@ -224,6 +224,8 @@ class CraftBeerPi:
self.notification.notify(title, message, type, action)
def push_update(self, topic, data, retain=False) -> None:
if self.satellite is not None:
asyncio.create_task(self.satellite.publish(topic=topic, message=json.dumps(data), retain=retain))
async def call_initializer(self, app):