From 37273017bbd421ccdd488fb53038587fe85618c3 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sun, 4 Jun 2023 18:18:57 -0400 Subject: [PATCH] Move sports imports to top of TTS briefings that use them --- templates/speech/daily_briefing.yaml | 2 +- templates/speech/morning_briefing.yaml | 2 +- templates/speech/nightly_briefing.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/speech/daily_briefing.yaml b/templates/speech/daily_briefing.yaml index 5ff543e..e8305ec 100644 --- a/templates/speech/daily_briefing.yaml +++ b/templates/speech/daily_briefing.yaml @@ -5,6 +5,7 @@ {% from 'status.jinja' import houseStatusReport, tonyStatusReport, tinaStatusReport, kallenStatusReport, emmaStatusReport %} {% from 'easy_time.jinja' import count_the_days %} {% from 'weather.jinja' import weatherReport %} + {% from 'sports.jinja' import sports_pregame, sports_main %}

{{ greeting() }}

@@ -239,7 +240,6 @@

- {% from 'sports.jinja' import sports_pregame, sports_main %} {% if is_state('input_boolean.sports_updates','on') %} {% if is_state('binary_sensor.michigan_wolverines_inhibit','off') %} {{ sports_pregame('sensor.michigan_wolverines') }} diff --git a/templates/speech/morning_briefing.yaml b/templates/speech/morning_briefing.yaml index 9bd01fc..a25bea1 100644 --- a/templates/speech/morning_briefing.yaml +++ b/templates/speech/morning_briefing.yaml @@ -5,6 +5,7 @@ {% from 'status.jinja' import tonyStatusReport, tinaStatusReport, kallenStatusReport, emmaStatusReport %} {% from 'easy_time.jinja' import count_the_days %} {% from 'weather.jinja' import weatherReport %} + {% from 'sports.jinja' import sports_pregame, sports_main %}

{{ greeting_nodate() }}

@@ -114,7 +115,6 @@

- {% from 'sports.jinja' import sports_pregame, sports_main %} {% if is_state('input_boolean.sports_updates','on') %} {% if is_state('binary_sensor.michigan_wolverines_inhibit','off') %} {{ sports_pregame('sensor.michigan_wolverines') }} diff --git a/templates/speech/nightly_briefing.yaml b/templates/speech/nightly_briefing.yaml index 2f90c9a..edd7ec5 100644 --- a/templates/speech/nightly_briefing.yaml +++ b/templates/speech/nightly_briefing.yaml @@ -6,6 +6,7 @@ {% from 'status.jinja' import tonyStatusReport, tinaStatusReport, kallenStatusReport, emmaStatusReport %} {% from 'easy_time.jinja' import count_the_days %} {% from 'weather.jinja' import weatherReport %} + {% from 'sports.jinja' import sports_pregame, sports_main %}

{{ greeting() }}

@@ -34,7 +35,6 @@

- {% from 'sports.jinja' import sports_pregame, sports_main %} {% if is_state('input_boolean.sports_updates','on') %} {% if is_state('binary_sensor.michigan_wolverines_inhibit','off') %} {{ sports_pregame('sensor.michigan_wolverines') }}