mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-21 14:38:15 +01:00
"fix actor instance error"
This commit is contained in:
parent
f1bcd1e543
commit
c78ab29b85
3 changed files with 4 additions and 2 deletions
|
@ -1 +1 @@
|
|||
__version__ = "4.0.0.24"
|
||||
__version__ = "4.0.0.25"
|
|
@ -117,11 +117,12 @@ class BasicController:
|
|||
return {"data": list(map(lambda x: x.to_dict(), self.data)), "types":self.get_types()}
|
||||
|
||||
async def add(self, item):
|
||||
print(item)
|
||||
logging.info("{} Add".format(self.name))
|
||||
item.id = shortuuid.uuid()
|
||||
self.data.append(item)
|
||||
if self.autostart is True:
|
||||
await self.start(id)
|
||||
await self.start(item.id)
|
||||
await self.save()
|
||||
return item
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ class Hysteresis(CBPiKettleLogic):
|
|||
self.heater = self.kettle.heater
|
||||
logging.info("Hysteresis {} {} {} {}".format(self.offset_on, self.offset_off, self.id, self.heater))
|
||||
|
||||
self.get_actor_state()
|
||||
|
||||
|
||||
while True:
|
||||
|
|
Loading…
Reference in a new issue