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 entity_id: input_datetime.kallen_bedtime
data: data:
time: > time: >
{% if is_state('input_boolean.school_in_session','on') %} {% if is_state('binary_sensor.kallen_school_tomorrow', 'on') %}
{% if is_state('binary_sensor.kallen_school_tomorrow', 'on') %} 21:00
21:00 {% elif is_state('input_boolean.school_in_session','on') %}
{% else %} 22:00
22:00
{% endif %}
{% else %} {% else %}
23:00 23:00
{% endif %} {% endif %}