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))