Merge branch 'development' into master

This commit is contained in:
Alexander Vollkopf 2021-11-21 19:31:19 +01:00 committed by GitHub
commit 2fa2c63a03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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