Fix sections showing up in sports dashboard when they shouldn't
This commit is contained in:
@@ -71,7 +71,9 @@
|
|||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro sports_inhibit(team) %}
|
{% macro sports_inhibit(team) %}
|
||||||
{% if state_attr(team,'kickoff_in') %}
|
{% if is_state(team,'NOT_FOUND') %}
|
||||||
|
true
|
||||||
|
{% elif state_attr(team,'kickoff_in') %}
|
||||||
{{ 'months' in state_attr(team,'kickoff_in') or
|
{{ 'months' in state_attr(team,'kickoff_in') or
|
||||||
'month' in state_attr(team,'kickoff_in') or
|
'month' in state_attr(team,'kickoff_in') or
|
||||||
'weeks' in state_attr(team,'kickoff_in') }}
|
'weeks' in state_attr(team,'kickoff_in') }}
|
||||||
|
|||||||
Reference in New Issue
Block a user