mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-17 02:17:01 +01:00
fix
This commit is contained in:
@@ -420,7 +420,7 @@ class LuiPagesGen(object):
|
|||||||
|
|
||||||
def generate_shutter_detail_page(self, entity):
|
def generate_shutter_detail_page(self, entity):
|
||||||
entity = self._ha_api.get_entity(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:
|
if pos is None:
|
||||||
pos = entity.state
|
pos = entity.state
|
||||||
pos_translation = get_translation(self._locale, "position")
|
pos_translation = get_translation(self._locale, "position")
|
||||||
|
|||||||
Reference in New Issue
Block a user