mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-08-09 18:52:40 +02:00
Update all brew steps to allow decimal values
Changes int() on mashin and boilsteps to a float() value to check if the Target Temp is reached. This allows decimals value to not error out in the log.
This commit is contained in:
@@ -92,7 +92,7 @@ class MashInStep(StepBase):
|
||||
'''
|
||||
|
||||
# Check if Target Temp is reached
|
||||
if self.get_kettle_temp(self.kettle) >= int(self.temp) and self.s is False:
|
||||
if self.get_kettle_temp(self.kettle) >= float(self.temp) and self.s is False:
|
||||
self.s = True
|
||||
self.notify("Step Temp Reached!", "Please press the next button to continue", timeout=None)
|
||||
|
||||
@@ -208,7 +208,7 @@ class BoilStep(StepBase):
|
||||
:return:
|
||||
'''
|
||||
# Check if Target Temp is reached
|
||||
if self.get_kettle_temp(self.kettle) >= int(self.temp):
|
||||
if self.get_kettle_temp(self.kettle) >= float(self.temp):
|
||||
# Check if Timer is Running
|
||||
if self.is_timer_finished() is None:
|
||||
self.start_timer(int(self.timer) * 60)
|
||||
@@ -218,4 +218,4 @@ class BoilStep(StepBase):
|
||||
self.check_hop_timer(3, self.hop_3)
|
||||
# Check if timer finished and go to next step
|
||||
if self.is_timer_finished() == True:
|
||||
self.next()
|
||||
self.next()
|
||||
|
||||
Reference in New Issue
Block a user