From ae7e3a2e7b13cdc753b12e9535b2c33458f12f79 Mon Sep 17 00:00:00 2001 From: swimIan Date: Tue, 8 Aug 2017 23:36:18 -0700 Subject: [PATCH] Adjust check_hop_timer function to alert the user to add the hops at the expected values in the boil process (ex. 60= bittering, 20=aroma, etc), instead of the reverse (ex. 0=bittering, 40=aroma, etc). --- modules/base_plugins/brew_steps/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/base_plugins/brew_steps/__init__.py b/modules/base_plugins/brew_steps/__init__.py index f46da69..8dcd82f 100644 --- a/modules/base_plugins/brew_steps/__init__.py +++ b/modules/base_plugins/brew_steps/__init__.py @@ -198,8 +198,8 @@ class BoilStep(StepBase): def check_hop_timer(self, number, value): - if self.__getattribute__("hop_%s_added" % number) is not True and time.time() > ( - self.timer_end - (int(self.timer) * 60 - int(value) * 60)): + if self.__getattribute__("hop_%s_added" % number) is not True and (int(value) * 60) == ( + self.timer_end - int(time.time())): self.__setattr__("hop_%s_added" % number, True) self.notify("Hop Alert", "Please add Hop %s" % number, timeout=None)