# default_widget.yaml
...
type: custom:button-card
entity: {{ widget_entity }}
name: |
{% for whatever in widget_template %}
{% endfor %}
# this code alone says yes!
{% if widget_template is sequence %}
YES!!!
{% else %}
NO!!!
{% endif %}
...
When placing the for loop it will result in an unknown error. It just doesn't let me iterate over the widget_template variable. Outputting the widget_template results in ['icon_hue_bulb_spot1', 'icon_hue_bulb_spot2', 'icon_hue_bulb_spot3']
I have the following setup:
When placing the for loop it will result in an unknown error. It just doesn't let me iterate over the widget_template variable. Outputting the widget_template results in
['icon_hue_bulb_spot1', 'icon_hue_bulb_spot2', 'icon_hue_bulb_spot3']
What am I doing wrong?