I have some automations that return a list of updates available.
When I use the template editor to check them, it always retuns line breaks, where I dont want them…it looks unclean
Is there a way to stop line breaks? Or is it normal?
This happens on multiple automations where I use a for loop to return human readable data.
Which is then sent as an automation.
{% set a = states.update
| selectattr('state','eq','on')
| map(attribute ='entity_id')
| list
%}
{% for state in a %}
{{ state_attr(state, 'friendly_name') }} v{{ state_attr(state, 'latest_version') }} available, running v{{ state_attr(state, 'installed_version') }}
{% endfor %}