mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 14:37:01 +01:00
popupShutter now also respects device_class
generate_shutter_detail_page() now respects device_class and fetches the appropriate icon
This commit is contained in:
@@ -426,7 +426,8 @@ class LuiPagesGen(object):
|
||||
|
||||
def generate_shutter_detail_page(self, entity):
|
||||
entity = self._ha_api.get_entity(entity)
|
||||
icon_id = get_icon_id_ha("cover", state=entity.state)
|
||||
device_class = entity.attributes.get("device_class", "")
|
||||
icon_id = get_icon_id_ha("cover", state=entity.state, device_class=device_class)
|
||||
|
||||
pos = entity.attributes.get("current_position")
|
||||
if pos is None:
|
||||
|
||||
Reference in New Issue
Block a user