From 1f25b3ae0303012db5cb71032efb572eaf5fe3a6 Mon Sep 17 00:00:00 2001 From: avollkopf <43980694+avollkopf@users.noreply.github.com> Date: Tue, 5 Apr 2022 07:43:19 +0200 Subject: [PATCH] Fix in case no valve is defined for fermenter --- cbpi/__init__.py | 2 +- cbpi/controller/fermentation_controller.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cbpi/__init__.py b/cbpi/__init__.py index 0a57ff7..99b280a 100644 --- a/cbpi/__init__.py +++ b/cbpi/__init__.py @@ -1,3 +1,3 @@ -__version__ = "4.0.5.a4" +__version__ = "4.0.5.a5" __codename__ = "Spring Break" diff --git a/cbpi/controller/fermentation_controller.py b/cbpi/controller/fermentation_controller.py index 7641044..5d19193 100644 --- a/cbpi/controller/fermentation_controller.py +++ b/cbpi/controller/fermentation_controller.py @@ -117,7 +117,7 @@ class FermentationController: pressure_sensor = data.get("pressure_sensor") heater = data.get("heater") cooler = data.get("cooler") - valve = data.get("valve") + valve = data.get("valve","") logictype = data.get("type") temp = data.get("target_temp") pressure = data.get("target_pressure")