From a503995d987f7b130d7c2afe6dca4e92012ae536 Mon Sep 17 00:00:00 2001 From: avollkopf <43980694+avollkopf@users.noreply.github.com> Date: Mon, 28 Feb 2022 11:15:02 +0100 Subject: [PATCH] update cli and remove target temp to 0 at fermenterstep end --- cbpi/__init__.py | 2 +- cbpi/cli.py | 4 ++-- cbpi/controller/plugin_controller.py | 2 +- cbpi/extension/FermentationStep/__init__.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cbpi/__init__.py b/cbpi/__init__.py index a04b728..45df59d 100644 --- a/cbpi/__init__.py +++ b/cbpi/__init__.py @@ -1 +1 @@ -__version__ = "4.0.2.0.a5" +__version__ = "4.0.2.0.a6" diff --git a/cbpi/cli.py b/cbpi/cli.py index fddd71e..850b53a 100644 --- a/cbpi/cli.py +++ b/cbpi/cli.py @@ -339,7 +339,7 @@ def create(): @click.command() @click.argument('name') def autostart(name): - '''Enable or disable autostart''' + '''(on|off|status) Enable or disable autostart''' if(name == "status"): if os.path.exists(os.path.join("/etc/systemd/system","craftbeerpi.service")) is True: print("CraftBeerPi Autostart is {}ON{}".format(Fore.LIGHTGREEN_EX,Style.RESET_ALL)) @@ -391,7 +391,7 @@ def autostart(name): @click.command() @click.argument('name') def chromium(name): - '''Enable or disable autostart''' + '''(on|off|status) Enable or disable Kiosk mode''' if(name == "status"): if os.path.exists(os.path.join("/etc/xdg/autostart/","chromium.desktop")) is True: print("CraftBeerPi Chromium Desktop is {}ON{}".format(Fore.LIGHTGREEN_EX,Style.RESET_ALL)) diff --git a/cbpi/controller/plugin_controller.py b/cbpi/controller/plugin_controller.py index 2d8410d..26081e6 100644 --- a/cbpi/controller/plugin_controller.py +++ b/cbpi/controller/plugin_controller.py @@ -208,7 +208,7 @@ class PluginController(): result.append({row: meta[row] for row in list(metadata(key))}) except Exception as e: - logger.error("FAILED to load plugin {} ".fromat(key)) + logger.error("FAILED to load plugin {} ".format(key)) logger.error(e) except Exception as e: diff --git a/cbpi/extension/FermentationStep/__init__.py b/cbpi/extension/FermentationStep/__init__.py index aec282f..d4e57bc 100644 --- a/cbpi/extension/FermentationStep/__init__.py +++ b/cbpi/extension/FermentationStep/__init__.py @@ -75,7 +75,7 @@ class FermenterTargetTempStep(CBPiFermentationStep): async def on_timer_done(self,timer): self.summary = "" - self.fermenter.target_temp = 0 + #self.fermenter.target_temp = 0 await self.push_update() if self.AutoMode == True: await self.setAutoMode(False) @@ -173,7 +173,7 @@ class FermenterStep(CBPiFermentationStep): async def on_timer_done(self,timer): self.summary = "" - self.fermenter.target_temp = 0 + #self.fermenter.target_temp = 0 if self.AutoMode == True: await self.setAutoMode(False) #self.endtime = 0