From 25327bab9fe79218fbd45b07a8815f3bc4521832 Mon Sep 17 00:00:00 2001 From: avollkopf <43980694+avollkopf@users.noreply.github.com> Date: Tue, 29 Mar 2022 18:48:36 +0200 Subject: [PATCH] clear femrenter recipe name if recie is cleared --- cbpi/__init__.py | 2 +- cbpi/controller/fermentation_controller.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cbpi/__init__.py b/cbpi/__init__.py index 06adfea..75f8776 100644 --- a/cbpi/__init__.py +++ b/cbpi/__init__.py @@ -1,2 +1,2 @@ -__version__ = "4.0.4.a2" +__version__ = "4.0.4.a3" __codename__ = "Spring Break" diff --git a/cbpi/controller/fermentation_controller.py b/cbpi/controller/fermentation_controller.py index f75690a..96b2f49 100644 --- a/cbpi/controller/fermentation_controller.py +++ b/cbpi/controller/fermentation_controller.py @@ -299,6 +299,8 @@ class FermentationController: item = self._find_by_id(id) # might require later check if step is active item.steps = [] + item.brewname = "" + self.push_update() self.save() self.push_update("fermenterstepupdate")