From a16c14feca1a9b51a7a901ccbcd0c448b6c602c9 Mon Sep 17 00:00:00 2001 From: avollkopf <43980694+avollkopf@users.noreply.github.com> Date: Wed, 2 Mar 2022 19:40:22 +0100 Subject: [PATCH] fix for loading fermenterrecipes from recipe book -> add endtime = 0 --- cbpi/__init__.py | 2 +- cbpi/controller/fermentation_controller.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cbpi/__init__.py b/cbpi/__init__.py index d10ec7f..4ac905a 100644 --- a/cbpi/__init__.py +++ b/cbpi/__init__.py @@ -1 +1 @@ -__version__ = "4.0.2.0.a10" +__version__ = "4.0.2.0.a11" diff --git a/cbpi/controller/fermentation_controller.py b/cbpi/controller/fermentation_controller.py index c70ab63..5f02a05 100644 --- a/cbpi/controller/fermentation_controller.py +++ b/cbpi/controller/fermentation_controller.py @@ -625,6 +625,7 @@ class FermentationController: fermenter = self._find_by_id(fermenterid) def add_runtime_data(item): item["status"] = "I" + item["endtime"] = 0 item["id"] = shortuuid.uuid() item["props"]["Sensor"] = fermenter.sensor list(map(lambda item: add_runtime_data(item), data.get("steps")))