Fix invalid template

This commit is contained in:
2023-01-16 19:57:43 -05:00
parent 93e4627a83
commit 05b457c206

View File

@ -314,7 +314,7 @@ script:
- if:
- condition: template
value_template: >
{% if state_attr('sensor.current_forecast','high_temp') >= states('input_number.hot_day_threshold') %}
{% if state_attr('sensor.current_forecast','high_temp') | int >= states('input_number.hot_day_threshold') | int %}
true
{% else %}
false
@ -330,7 +330,7 @@ script:
- if:
- condition: template
value_template: >
{% if state_attr('sensor.current_forecast','high_temp') >= states('input_number.cold_day_threshold') %}
{% if state_attr('sensor.current_forecast','high_temp') | int <= states('input_number.cold_day_threshold') | int %}
true
{% else %}
false