mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 23:14:25 +01:00
Update pages.py
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user