updating configuration

This commit is contained in:
monster
2019-01-30 22:03:39 +03:00
parent 5c9324e3b2
commit 0bb13e203b
26 changed files with 121 additions and 39 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ class Battery(hass.Hass):
if "battery_level" in devices[device]["attributes"]:
battery = devices[device]["attributes"]["battery_level"]
if battery != None:
if battery < self.args["threshold"]:
if battery < self.args["threshold"] and battery != 0:
low.append(device)
values[device] = battery