Fix K's bedtime set wrong on last day of summer break

This commit is contained in:
2023-08-22 20:21:38 -04:00
parent 8b512afca9
commit cdf4864bbd

View File

@ -283,12 +283,10 @@ script:
entity_id: input_datetime.kallen_bedtime
data:
time: >
{% if is_state('input_boolean.school_in_session','on') %}
{% if is_state('binary_sensor.kallen_school_tomorrow', 'on') %}
21:00
{% else %}
22:00
{% endif %}
{% if is_state('binary_sensor.kallen_school_tomorrow', 'on') %}
21:00
{% elif is_state('input_boolean.school_in_session','on') %}
22:00
{% else %}
23:00
{% endif %}