Fix Shutter Detail Page

This commit is contained in:
Johannes
2022-04-04 15:51:02 +02:00
committed by GitHub
parent 547404eff1
commit 43d0a95b31

View File

@@ -385,7 +385,7 @@ class LuiPagesGen(object):
def generate_shutter_detail_page(self, entity):
entity = self._ha_api.get_entity(entity)
pos = 100-int(entity.attributes.get("current_position", 50))
pos = int(entity.attributes.get("current_position", 50))
self._send_mqtt_msg(f"entityUpdateDetail~{pos}")
def send_message_page(self, id, heading, msg, b1, b2):