mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-22 05:24:54 +01:00
"fix actor satellite issue"
This commit is contained in:
parent
c78ab29b85
commit
79fd2b8727
3 changed files with 18 additions and 2 deletions
|
@ -1 +1 @@
|
|||
__version__ = "4.0.0.25"
|
||||
__version__ = "4.0.0.26"
|
|
@ -16,7 +16,7 @@ class ActorController(BasicController):
|
|||
if item.instance.state is False:
|
||||
await item.instance.on()
|
||||
await self.push_udpate()
|
||||
await self.cbpi.satellite.publish("cbpi/actor/on", "ACTOR ON")
|
||||
#await self.cbpi.satellite.publish("cbpi/actor/on", "ACTOR ON")
|
||||
except Exception as e:
|
||||
logging.error("Faild to switch on Actor {} {}".format(id, e))
|
||||
|
||||
|
|
|
@ -12,6 +12,14 @@ import logging
|
|||
Property.Kettle(label="Kettle")])
|
||||
class MashStep(CBPiStep):
|
||||
|
||||
@action(key="Custom Step Action", parameters=[])
|
||||
async def hello(self, **kwargs):
|
||||
print("ACTION")
|
||||
|
||||
@action(key="Custom Step Action 2", parameters=[])
|
||||
async def hello2(self, **kwargs):
|
||||
print("ACTION2")
|
||||
|
||||
async def on_timer_done(self,timer):
|
||||
self.summary = ""
|
||||
await self.next()
|
||||
|
@ -45,6 +53,14 @@ class MashStep(CBPiStep):
|
|||
@parameters([Property.Number(label="Timer", description="Time in Minutes", configurable=True)])
|
||||
class WaitStep(CBPiStep):
|
||||
|
||||
@action(key="Custom Step Action", parameters=[])
|
||||
async def hello(self, **kwargs):
|
||||
print("ACTION")
|
||||
|
||||
@action(key="Custom Step Action 2", parameters=[])
|
||||
async def hello2(self, **kwargs):
|
||||
print("ACTION2")
|
||||
|
||||
async def on_timer_done(self,timer):
|
||||
self.summary = ""
|
||||
await self.next()
|
||||
|
|
Loading…
Reference in a new issue