mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2025-01-08 05:41:45 +01:00
summary2 -> default: None
This commit is contained in:
parent
92854a149b
commit
ea5e56bf62
2 changed files with 5 additions and 5 deletions
|
@ -46,7 +46,7 @@ class CBPiStep(CBPiBase):
|
|||
self.props = props
|
||||
self.cancel_reason: StepResult = None
|
||||
self.summary = ""
|
||||
self.summary2 = ""
|
||||
self.summary2 = None
|
||||
self.task = None
|
||||
self.running: bool = False
|
||||
self.logger = logging.getLogger(__name__)
|
||||
|
|
|
@ -385,7 +385,7 @@ class BoilStep(CBPiStep):
|
|||
self.dwelltime=5*60 #tested with 5 minutes -> not exactly 5 min due to accuracy of asyncio.sleep
|
||||
self.deviationlimit=0.3 # derived from a test
|
||||
#logging.warning(self.AutoTimer)
|
||||
self.summary2=""
|
||||
self.summary2=None
|
||||
|
||||
self.kettle=self.get_kettle(self.props.get("Kettle", None))
|
||||
if self.kettle is not None:
|
||||
|
@ -435,7 +435,7 @@ class BoilStep(CBPiStep):
|
|||
async def on_stop(self):
|
||||
await self.timer.stop()
|
||||
self.summary = ""
|
||||
self.summary2 = ""
|
||||
self.summary2 = None
|
||||
self.kettle.target_temp = 0
|
||||
if self.AutoMode == True:
|
||||
await self.setAutoMode(False)
|
||||
|
@ -478,9 +478,9 @@ class BoilStep(CBPiStep):
|
|||
if self.timer.is_running:
|
||||
try:
|
||||
nexthoptimer = await self.next_hop_timer()
|
||||
self.summary2="Add Hop in: %s" % nexthoptimer if nexthoptimer is not None else ""
|
||||
self.summary2="Add Hop in: %s" % nexthoptimer if nexthoptimer is not None else None
|
||||
except:
|
||||
self.summary2=""
|
||||
self.summary2= None
|
||||
for x in range(1, 6):
|
||||
await self.check_hop_timer(x, self.props.get("Hop_%s" % x, None), self.props.get("Hop_%s_text" % x, None))
|
||||
|
||||
|
|
Loading…
Reference in a new issue