Not all sports have a kickoff...

This commit is contained in:
2023-04-19 20:40:22 -04:00
parent 53c0d4e86a
commit f944d1d1fe

View File

@ -3,7 +3,7 @@
{% set date = state_attr(team,'date') | as_timestamp | timestamp_custom('%m-%d') %} {% set date = state_attr(team,'date') | as_timestamp | timestamp_custom('%m-%d') %}
{% if date == now().strftime('%m-%d') %} {% if date == now().strftime('%m-%d') %}
"The {{ state_attr(team,'friendly_name') }} will be playing today against the {{ state_attr(team,'opponent_name') }} at {{ state_attr(team,'venue') }}. " "The {{ state_attr(team,'friendly_name') }} will be playing today against the {{ state_attr(team,'opponent_name') }} at {{ state_attr(team,'venue') }}. "
"Kickoff will be at {{ state_attr(team,'date') | as_timestamp | timestamp_custom('%I:%M %p') }}. " "Start time is at {{ state_attr(team,'date') | as_timestamp | timestamp_custom('%I:%M %p') }}. "
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endmacro %} {% endmacro %}