From d6a56714e4645f7f72430b85260b49c1994ee972 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 4 May 2023 13:34:22 -0400 Subject: [PATCH] Rename macro to set_datetime because it makes more sense --- custom_templates/time.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_templates/time.jinja b/custom_templates/time.jinja index bd1cad3..8e05a25 100644 --- a/custom_templates/time.jinja +++ b/custom_templates/time.jinja @@ -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 %}