Move Assist things to regular packages due to filename conflicts

This commit is contained in:
2023-07-20 15:53:53 -04:00
parent 9c9c4b5f50
commit 64607570f1
11 changed files with 54 additions and 47 deletions

View File

@ -47,4 +47,20 @@ template:
unique_id: 2c6aae6e-eff6-46e5-bee9-311f9bbc0c0e
state: >
{% from 'sports.jinja' import sports_inhibit %}
{{ state_attr('sensor.los_angeles_dodgers','opponent_abbr') in ['CLE'] or sports_inhibit('sensor.los_angeles_dodgers') }}
{{ state_attr('sensor.los_angeles_dodgers','opponent_abbr') in ['CLE'] or sports_inhibit('sensor.los_angeles_dodgers') }}
intent_script:
SportsScore:
speech:
text: >
{% from 'sports.jinja' import sports_pregame, sports_main %}
{% set inhibit = "binary_sensor." + team + "_inhibit" %}
{% set sensor = "sensor." + team %}
{% if is_state(inhibit,'on') %}
I do not have any information about the {{ state_attr(team,'friendly_name') }} at this time.
{% elif states(sensor) in ["NOT_FOUND"] %}
They do not appear to have a game scheduled for today.
{% else %}
{{ sports_pregame(sensor) }}
{{ sports_main(sensor) }}
{% endif %}