From 2862b604dda9b69b72005012a0ba0f1967c04ec3 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 13 Oct 2022 19:43:10 -0400 Subject: [PATCH] Fixed "elif" statement #52 --- templates/speech/nightly_briefing.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/speech/nightly_briefing.yaml b/templates/speech/nightly_briefing.yaml index 92bf478..14667f0 100644 --- a/templates/speech/nightly_briefing.yaml +++ b/templates/speech/nightly_briefing.yaml @@ -36,7 +36,7 @@ {% if is_state('input_boolean.master_bedroom_aircon_installed','on') %} {% if is_state('input_select.scheduled_climate_mode_master_bedroom_aircon','AC') and is_state('input_boolean.hot_day','on') %} "Today was a hot day, so the master bedroom air conditioner will activate cooling mode a bit earlier tonight at {{ (state_attr('input_datetime.master_bedroom_cooling','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. " - {% if is_state('input_select.scheduled_climate_mode_master_bedroom_aircon','AC') %} + {% elif is_state('input_select.scheduled_climate_mode_master_bedroom_aircon','AC') %} "The master bedroom air conditioner will activate cooling mode at {{ (state_attr('input_datetime.master_bedroom_cooling','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. " {% elif is_state('input_select.scheduled_climate_mode_master_bedroom_aircon','Fan') %} "The master bedroom air conditioner will activate fan only mode at {{ (state_attr('input_datetime.master_bedroom_cooling','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. "