From 3cf48fff04866bcd980282efe0be78c1294c0822 Mon Sep 17 00:00:00 2001 From: avollkopf <43980694+avollkopf@users.noreply.github.com> Date: Wed, 2 Mar 2022 10:29:21 +0100 Subject: [PATCH] fix to start timer directly after restart on step with remaining time --- cbpi/__init__.py | 2 +- cbpi/extension/FermentationStep/__init__.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cbpi/__init__.py b/cbpi/__init__.py index 942c934..d719dda 100644 --- a/cbpi/__init__.py +++ b/cbpi/__init__.py @@ -1 +1 @@ -__version__ = "4.0.2.0.a3" +__version__ = "4.0.2.0.a9" diff --git a/cbpi/extension/FermentationStep/__init__.py b/cbpi/extension/FermentationStep/__init__.py index 130604c..cf0c552 100644 --- a/cbpi/extension/FermentationStep/__init__.py +++ b/cbpi/extension/FermentationStep/__init__.py @@ -204,6 +204,7 @@ class FermenterStep(CBPiFermentationStep): if self.fermenter is not None and self.timer is None: self.timer = Timer(self.fermentationtime ,on_update=self.on_timer_update, on_done=self.on_timer_done) + self.timer.is_running = False elif self.fermenter is not None: try: if self.timer.is_running == True: