mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-22 06:58:17 +01:00
minor bug fix
Error message showed up when no instance of kettle was active
This commit is contained in:
parent
a0e89fe4dc
commit
19f3a16154
2 changed files with 4 additions and 3 deletions
|
@ -1 +1 @@
|
||||||
__version__ = "4.0.0.46"
|
__version__ = "4.0.0.47"
|
||||||
|
|
|
@ -35,8 +35,9 @@ 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:
|
||||||
await item.instance.stop()
|
await item.instance.stop()
|
||||||
await self.push_udpate()
|
await self.push_udpate()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in a new issue