minor fix in kettle controller

This commit is contained in:
avollkopf 2021-11-21 19:19:19 +01:00
parent f9345a30d7
commit 949219db06
2 changed files with 3 additions and 2 deletions

View file

@ -1 +1 @@
__version__ = "4.0.0.46"
__version__ = "4.0.0.47"

View file

@ -37,7 +37,8 @@ class KettleController(BasicController):
try:
logging.info("Stop Kettele {}".format(id))
item = self.find_by_id(id)
await item.instance.stop()
if item.instance:
await item.instance.stop()
await self.push_udpate()
except Exception as e:
logging.error("Failed to switch off KettleLogic {} {}".format(id, e))