fix self.summary None -> ""

This commit is contained in:
avollkopf 2025-01-05 09:11:16 +01:00
parent 1937500535
commit 06ce4251af
3 changed files with 4 additions and 4 deletions

View file

@ -1,3 +1,3 @@
__version__ = "4.5.0.a2"
__version__ = "4.5.0.a3"
__codename__ = "Cross Country"

View file

@ -46,7 +46,7 @@ class CBPiStep(CBPiBase):
self.props = props
self.cancel_reason: StepResult = None
self.summary = ""
self.summary2 = None
self.summary2 = ""
self.task = None
self.running: bool = False
self.logger = logging.getLogger(__name__)

View file

@ -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=None
self.summary2=""
self.kettle=self.get_kettle(self.props.get("Kettle", None))
if self.kettle is not None:
@ -436,7 +436,7 @@ class BoilStep(CBPiStep):
async def on_stop(self):
await self.timer.stop()
self.summary = ""
self.summary2 = None
self.summary2 = ""
self.kettle.target_temp = 0
if self.AutoMode == True:
await self.setAutoMode(False)