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:
@@ -143,7 +143,8 @@ class LuiPagesGen(object):
|
||||
entity = self._ha_api.get_entity(entityId)
|
||||
name = name if name is not None else entity.attributes.friendly_name
|
||||
if entityType == "cover":
|
||||
icon_id = get_icon_id_ha("cover", state=entity.state, device_class=entity.attributes.get("device_class"), overwrite=icon)
|
||||
device_class = entity.attributes.get("device_class", "")
|
||||
icon_id = get_icon_id_ha("cover", state=entity.state, device_class=device_class, overwrite=icon)
|
||||
pos = int(entity.attributes.get("current_position", 50))
|
||||
if pos == 100:
|
||||
status = "0|1"
|
||||
|
||||
Reference in New Issue
Block a user