From ff6d170a946b4c4e8f235f2d81807118ca990fcb Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Fri, 6 Jan 2023 21:36:31 +0100 Subject: [PATCH] bug-fix missing battery --- devices/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/__init__.py b/devices/__init__.py index 9b38160..d9f1881 100644 --- a/devices/__init__.py +++ b/devices/__init__.py @@ -801,7 +801,7 @@ class brennenstuhl_heatingvalve(base): self.KEY_CHILD_LOCK: "UNLOCK", self.KEY_VALVE_DETECTION: "ON", self.KEY_SYSTEM_MODE: "heat"})) def warning_call_condition(self): - return self.get(self.KEY_BATTERY) <= BATTERY_WARN_LEVEL + return self.get(self.KEY_BATTERY, 100) <= BATTERY_WARN_LEVEL def warning_text(self): return "Low battery level detected for %s. Battery level was %.0f%%." % (self.topic, self.get(self.KEY_BATTERY))