Merge pull request #209 from illuzn/patch-1

popupShutter now also respects device_class
This commit is contained in:
Johannes
2022-05-22 13:47:26 +02:00
committed by GitHub

View File

@@ -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: