diff --git a/cbpi/__init__.py b/cbpi/__init__.py index 5cd23c6..e16d4b8 100644 --- a/cbpi/__init__.py +++ b/cbpi/__init__.py @@ -1 +1 @@ -__version__ = "4.0.0.32" \ No newline at end of file +__version__ = "4.0.0.33" \ No newline at end of file diff --git a/cbpi/craftbeerpi.py b/cbpi/craftbeerpi.py index feeeb88..ced9644 100644 --- a/cbpi/craftbeerpi.py +++ b/cbpi/craftbeerpi.py @@ -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'])