Fixes for summer vacation breaking K's morning scheduling
This commit is contained in:
@ -27,7 +27,9 @@
|
||||
{% endmacro %}
|
||||
|
||||
{% macro calendar_event_today(calendar) %}
|
||||
{{ as_timestamp(strptime(state_attr(calendar,'start_time'), '%Y-%m-%d %H:%M:%S')) | timestamp_custom("%Y-%m-%d") == now().strftime("%Y-%m-%d") }}
|
||||
{% if state_attr(calendar,'start_time') %}
|
||||
{{ as_timestamp(strptime(state_attr(calendar,'start_time'), '%Y-%m-%d %H:%M:%S')) | timestamp_custom("%Y-%m-%d") == now().strftime("%Y-%m-%d") }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro set_time_from_calendar(calendar,start_or_end) %}
|
||||
|
Reference in New Issue
Block a user