Merge branch 'main' into pr/203

This commit is contained in:
Johannes
2022-05-22 10:55:41 +02:00
27 changed files with 710 additions and 668 deletions

View File

@@ -426,13 +426,15 @@ class LuiPagesGen(object):
def generate_shutter_detail_page(self, entity):
entity = self._ha_api.get_entity(entity)
icon = entity.iconOverride
icon_id = get_icon_id_ha("cover", state=entity.state, overwrite=icon)
icon_id = get_icon_id_ha("cover", state=entity.state)
pos = entity.attributes.get("current_position")
if pos is None:
pos_status = entity.state
pos = "disable"
else:
pos_status = pos
icon_up = get_icon_id("arrow-up")
icon_stop = get_icon_id("stop")