From 05b457c2068a8ef6928721ece0918c5ada97edf1 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 16 Jan 2023 19:57:43 -0500 Subject: [PATCH] Fix invalid template --- packages/scheduling.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/scheduling.yaml b/packages/scheduling.yaml index e084d4e..5fb6f0f 100644 --- a/packages/scheduling.yaml +++ b/packages/scheduling.yaml @@ -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