mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-22 21:44:57 +01:00
fix: error, i put the modification on bad class
This commit is contained in:
parent
93a07ac613
commit
de38fbc80c
1 changed files with 2 additions and 3 deletions
|
@ -71,8 +71,6 @@ class WaitStep(CBPiStep):
|
|||
async def on_start(self):
|
||||
if self.timer is None:
|
||||
self.timer = Timer(int(self.props.Timer) * 60,on_update=self.on_timer_update, on_done=self.on_timer_done)
|
||||
if self.cbpi.kettle is not None:
|
||||
await self.cbpi.kettle.set_target_temp(self.props.Kettle, int(self.props.Temp))
|
||||
self.timer.start()
|
||||
|
||||
async def on_stop(self):
|
||||
|
@ -137,7 +135,8 @@ class BoilStep(CBPiStep):
|
|||
async def on_start(self):
|
||||
if self.timer is None:
|
||||
self.timer = Timer(int(self.props.Timer) *60 ,on_update=self.on_timer_update, on_done=self.on_timer_done)
|
||||
|
||||
if self.cbpi.kettle is not None:
|
||||
await self.cbpi.kettle.set_target_temp(self.props.Kettle, int(self.props.Temp))
|
||||
self.summary = "Waiting for Target Temp"
|
||||
await self.push_update()
|
||||
|
||||
|
|
Loading…
Reference in a new issue