From 5fe95fe8d46d785ac46f995aae2818c15ea32f14 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 25 May 2022 02:01:56 -0400 Subject: [PATCH] Minor tweak for last day of school --- templates/speech/morning_briefing.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/speech/morning_briefing.yaml b/templates/speech/morning_briefing.yaml index 2ecf85c..60664ca 100644 --- a/templates/speech/morning_briefing.yaml +++ b/templates/speech/morning_briefing.yaml @@ -82,6 +82,11 @@ {{states.calendar.national_holidays.attributes.message | replace("&"," and ") }}. {%- endif -%}

+

+ {% if now().strftime('%Y-%m-%d') == states.input_datetime.school_last_day.state %} + Congratulations, today is the last day of school! Have an awesome day! + {% endif %} +

{% if is_state('input_boolean.school_today','on') and is_state('input_boolean.work_today','on') %}