mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +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,7 +224,9 @@ class CraftBeerPi:
|
|||
self.notification.notify(title, message, type, action)
|
||||
|
||||
def push_update(self, topic, data, retain=False) -> None:
|
||||
asyncio.create_task(self.satellite.publish(topic=topic, message=json.dumps(data), retain=retain))
|
||||
|
||||
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):
|
||||
self.initializer = sorted(self.initializer, key=lambda k: k['order'])
|
||||
|
|
Loading…
Reference in a new issue