From 21666f2d4bb3c919dccd393b741f348cf3b32968 Mon Sep 17 00:00:00 2001 From: Martijn van der Pol Date: Mon, 19 Feb 2024 14:39:05 +0100 Subject: [PATCH] Small fix for debug mode when there is an error (#127) * Small fix for debug mode when there is an error * bump version number --- cheapest_energy_hours.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cheapest_energy_hours.jinja b/cheapest_energy_hours.jinja index 925b2fb..fc12e0f 100644 --- a/cheapest_energy_hours.jinja +++ b/cheapest_energy_hours.jinja @@ -1,4 +1,4 @@ -{%- set _version = '5.4.0'-%} +{%- set _version = '5.4.1'-%} {#- sub-macro to format datetimes to selected time_format -#} {%- macro _format_date(datetime, time_format) -%} @@ -727,7 +727,7 @@ {{- dict( version=_version, output=macro_output, - error=false, + error=true if error_msg is defined else false, non_default_user_input=non_default, set_by_macro=set_by_macro, defaults_used=defaults_used,