Fix iOS icon calculation to return mdi:battery for levels above 95
This commit is contained in:
1 file changed
+1
-1
@@ -96,7 +96,7 @@ class IOSSensor(Entity):
|
||||
elif battery_state == ios.ATTR_BATTERY_STATE_UNPLUGGED:
|
||||
if rounded_level < 10:
|
||||
returning_icon = "{}-outline".format(DEFAULT_ICON)
|
||||
elif battery_level == 100:
|
||||
elif battery_level > 95:
|
||||
returning_icon = DEFAULT_ICON
|
||||
else:
|
||||
returning_icon = "{}-{}".format(DEFAULT_ICON,
|
||||
|
||||
Reference in new issue
Block a user