瀏覽代碼

Merge pull request #81 from swimIan/master

Update all brew steps to allow decimal values
tags/3.1_alpha
Manuel83 GitHub 8 年之前
父節點
當前提交
9a1981fa46
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      modules/base_plugins/brew_steps/__init__.py

+ 3
- 3
modules/base_plugins/brew_steps/__init__.py 查看文件

@@ -92,7 +92,7 @@ class MashInStep(StepBase):
''' '''


# Check if Target Temp is reached # 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.s = True
self.notify("Step Temp Reached!", "Please press the next button to continue", timeout=None) self.notify("Step Temp Reached!", "Please press the next button to continue", timeout=None)


@@ -208,7 +208,7 @@ class BoilStep(StepBase):
:return: :return:
''' '''
# Check if Target Temp is reached # 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 # Check if Timer is Running
if self.is_timer_finished() is None: if self.is_timer_finished() is None:
self.start_timer(int(self.timer) * 60) self.start_timer(int(self.timer) * 60)
@@ -218,4 +218,4 @@ class BoilStep(StepBase):
self.check_hop_timer(3, self.hop_3) self.check_hop_timer(3, self.hop_3)
# Check if timer finished and go to next step # Check if timer finished and go to next step
if self.is_timer_finished() == True: if self.is_timer_finished() == True:
self.next()
self.next()

Loading…
取消
儲存