mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +01:00
Merge branch 'development' into master
This commit is contained in:
commit
2fa2c63a03
1 changed files with 3 additions and 3 deletions
|
@ -35,10 +35,10 @@ class KettleController(BasicController):
|
|||
|
||||
async def stop(self, id):
|
||||
try:
|
||||
logging.info("Stop Kettele {}".format(id))
|
||||
logging.info("Stop Kettle {}".format(id))
|
||||
item = self.find_by_id(id)
|
||||
if item.instance:
|
||||
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))
|
||||
|
|
Loading…
Reference in a new issue