This code displays a vertical list of entities meeting the filter conditions in a markdown card. How do I display this same list in a linear-style sentence? One entity after the other in a single row seperated by commas?
After thinking about it, I feel like I need to build a new variable using the results of the current code. I’m just not that good at YAML. But someone more familiar who can see what I’m going for may be able to clean this up and finish my thoughts on this?
Something like?:
{% set var as string %}
{% for i in config.entities %}
{% if i.entity <> null then var = var + i.entity %}
{% endfor %}
{{ var }}