mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +01:00
missing varable in mqttsensor
This commit is contained in:
parent
54eb769fb3
commit
7df48bdf08
2 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,3 @@
|
||||||
__version__ = "4.1.7.rc2"
|
__version__ = "4.1.7.rc3"
|
||||||
__codename__ = "Groundhog Day"
|
__codename__ = "Groundhog Day"
|
||||||
|
|
||||||
|
|
|
@ -129,6 +129,7 @@ class MQTTSensor(CBPiSensor):
|
||||||
return dict(value=self.value)
|
return dict(value=self.value)
|
||||||
|
|
||||||
async def on_stop(self):
|
async def on_stop(self):
|
||||||
|
was_cancelled=False
|
||||||
if not self.mqtt_task.done():
|
if not self.mqtt_task.done():
|
||||||
logging.info("Task not done -> cancelling")
|
logging.info("Task not done -> cancelling")
|
||||||
was_cancelled = self.mqtt_task.cancel()
|
was_cancelled = self.mqtt_task.cancel()
|
||||||
|
|
Loading…
Reference in a new issue