This commit is contained in:
Johannes
2022-05-21 18:51:20 +02:00
parent ec06dc7e22
commit 4626702a45

View File

@@ -420,7 +420,7 @@ class LuiPagesGen(object):
def generate_shutter_detail_page(self, entity):
entity = self._ha_api.get_entity(entity)
pos = int(entity.attributes.get("current_position"))
pos = entity.attributes.get("current_position")
if pos is None:
pos = entity.state
pos_translation = get_translation(self._locale, "position")