From ef548c2df140bc880882f5c5e04c102b933b917e Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 16 Apr 2025 14:32:28 -0400 Subject: [PATCH] Use period_str instead of "inning" --- custom_templates/sports.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_templates/sports.jinja b/custom_templates/sports.jinja index b340bd3..b3f3f27 100644 --- a/custom_templates/sports.jinja +++ b/custom_templates/sports.jinja @@ -28,7 +28,7 @@ {% set game_clock = state_attr(team,'clock') %} {% if state_attr(team,'league') == 'MLB' %} {% set inning_parts = game_clock.split(' ') %} - in the {{ inning_parts[0] ~ ' of the ' ~ inning_parts[1] ~ ' inning' }} + in the {{ inning_parts[0] ~ ' of the ' ~ inning_parts[1] ~ ' ' ~ period_str }} {% else %} {% if ' - ' in game_clock %} {% set clock_time, quarter = game_clock.split(' - ') %}