Skip to content

Commit

Permalink
summary2 -> default: None
Browse files Browse the repository at this point in the history
  • Loading branch information
avollkopf committed Jan 5, 2025
1 parent 92854a1 commit ea5e56b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cbpi/api/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, cbpi, id, name, props, on_done) -> None:
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__)
Expand Down
8 changes: 4 additions & 4 deletions cbpi/extension/mashstep/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ async def on_start(self):
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:
Expand Down Expand Up @@ -435,7 +435,7 @@ async def check_hop_timer(self, number, value, text):
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)
Expand Down Expand Up @@ -478,9 +478,9 @@ async def run(self):
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))

Expand Down

0 comments on commit ea5e56b

Please sign in to comment.