Rename macro to set_datetime because it makes more sense

This commit is contained in:
2023-05-04 13:34:22 -04:00
parent 48186bb6c2
commit d6a56714e4

View File

@ -38,7 +38,7 @@
{{ as_timestamp(strptime(state_attr(calendar,start_or_end), '%Y-%m-%d %H:%M:%S')) | timestamp_custom("%I:%M %p") }}
{% endmacro %}
{% macro increment_datetime_from_now(hours,minutes) %}
{% macro set_datetime(hours,minutes) %}
{% if minutes is defined %}
{{ (as_timestamp(now()) + (((hours * 60) * 60) + (minutes * 60))) | int | timestamp_custom('%Y-%m-%d %H:%M:%S') }}
{% else %}