mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 23:14:25 +01:00
fix syntax
This commit is contained in:
@@ -287,7 +287,7 @@ class LuiController(object):
|
||||
msg = ""
|
||||
entity = self._ha_api.get_entity(entity_id)
|
||||
if "open_sensors" in entity.attributes and entity.attributes.open_sensors is not None:
|
||||
for e in entity:
|
||||
for e in entity.attributes.open_sensors:
|
||||
msg += f"- {self._ha_api.get_entity(e).attributes.friendly_name}\n"
|
||||
self._pages_gen.send_message_page("opnSensorNotifyRes", "", msg, "", "")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user