@stezak wrote:
Why do the following two comparisons NOT return the same result?
{% if state_attr('climate.home_2', 'preset_mode') == none %}A{% else %}B{% endif %} {% if is_state_attr('climate.home_2', 'preset_mode', none) %}A{% else %}B{% endif %}
Templating result:
A B
Posts: 10
Participants: 4