From 1a5f61e994dda5981fffa343422e17c95fe1d1ce Mon Sep 17 00:00:00 2001 From: Johannes Date: Mon, 23 May 2022 17:22:11 +0200 Subject: [PATCH] fix icons on shutter detail page --- apps/nspanel-lovelace-ui/luibackend/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/nspanel-lovelace-ui/luibackend/pages.py b/apps/nspanel-lovelace-ui/luibackend/pages.py index 1bc9ba54..b6e6bad2 100644 --- a/apps/nspanel-lovelace-ui/luibackend/pages.py +++ b/apps/nspanel-lovelace-ui/luibackend/pages.py @@ -477,7 +477,7 @@ class LuiPagesGen(object): def generate_shutter_detail_page(self, entity): entity = self._ha_api.get_entity(entity) entityType="cover" - device_class = entity.attributes.get("device_class", "") + device_class = entity.attributes.get("device_class", "window") icon_id = get_icon_id_ha(entityType, state=entity.state, device_class=device_class) pos = entity.attributes.get("current_position")