mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-22 21:44:57 +01:00
"fix mqtt push update issue"
This commit is contained in:
parent
12857c73ef
commit
2a018fb731
2 changed files with 4 additions and 2 deletions
|
@ -1 +1 @@
|
|||
__version__ = "4.0.0.32"
|
||||
__version__ = "4.0.0.33"
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue