Fix iOS icon calculation to return mdi:battery for levels above 95

This commit is contained in:
Robbie Trencheny 2017-04-17 22:51:06 -07:00
parent cec39077ba
commit 919bb08d02
No known key found for this signature in database
GPG Key ID: 57406F414538A33B

View File

@ -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,