Remove unused school events sensor

This commit is contained in:
2023-03-23 15:36:20 -04:00
parent de20ba29e3
commit d33b1c2b92

View File

@ -254,18 +254,18 @@ sensor:
# Nothing # Nothing
# {%- endif %} # {%- endif %}
- platform: rest # - platform: rest
resource: https://raw.githubusercontent.com/tm24fan8/Home-Assistant-Configs/master/packages/json_data/school.json # resource: https://raw.githubusercontent.com/tm24fan8/Home-Assistant-Configs/master/packages/json_data/school.json
name: School Event # name: School Event
scan_interval: 14400 # scan_interval: 14400
value_template: > # value_template: >
{% set today = now().month ~ '/' ~ now().day %} # {% set today = now().month ~ '/' ~ now().day %}
{% set event = value_json.EVENTS.static[ today ] %} # {% set event = value_json.EVENTS.static[ today ] %}
{%- if event %} # {%- if event %}
{{ event }} # {{ event }}
{% else %} # {% else %}
Nothing # Nothing
{%- endif %} # {%- endif %}
automation: automation:
- id: e1cb2d02-0423-11eb-adc1-0242ac120002 - id: e1cb2d02-0423-11eb-adc1-0242ac120002