Ver código fonte

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.
tags/3.1_alpha
swimIan GitHub 8 anos atrás
pai
commit
54dd31ea11
1 arquivos alterados com 3 adições e 3 exclusões
  1. +3
    -3
      modules/base_plugins/brew_steps/__init__.py

+ 3
- 3
modules/base_plugins/brew_steps/__init__.py Ver arquivo

@@ -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()

Carregando…
Cancelar
Salvar