Change new line (\n) to add character return (\r\n) (#416)

On the US Panel for English when multiple entities are open the control panel would put everything on one line instead of adding a new line between each entity, this fix changes that.  I don't know if this is an issue for other regions/languages
This commit is contained in:
editter
2022-08-26 13:35:06 -05:00
committed by GitHub
parent 489b7994b4
commit f946416d7d

View File

@@ -357,6 +357,6 @@ class LuiController(object):
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.attributes.open_sensors:
msg += f"- {self._ha_api.get_entity(e).attributes.friendly_name}\n"
msg += f"- {self._ha_api.get_entity(e).attributes.friendly_name}\r\n"
self._pages_gen.send_message_page("opnSensorNotifyRes", "", msg, "", "")