Update pages.py

This commit is contained in:
Johannes
2022-10-07 17:56:31 +02:00
committed by GitHub
parent 678fa627f8
commit 24fcea59a9

View File

@@ -588,7 +588,7 @@ class LuiPagesGen(object):
entity = apis.ha_api.get_entity(item.entityId) entity = apis.ha_api.get_entity(item.entityId)
icon_color = self.get_entity_color(entity) icon_color = self.get_entity_color(entity)
device_class = entity.attributes.get("device_class", "") device_class = entity.attributes.get("device_class", "")
icon = get_icon_id_ha(item.entityId.split(".")[0], state=entity.state, device_class=device_class, overwrite=item.iconOverride) icon = get_icon(item.entityId.split(".")[0], state=entity.state, device_class=device_class, overwrite=item.iconOverride)
speed = 0 speed = 0
if float(entity.state) > 0: if float(entity.state) > 0:
speed = -1 speed = -1