Skip to content

Commit

Permalink
Fix JSON output for split mode all (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFes authored Aug 12, 2024
1 parent b640ff5 commit ae24cb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Paypal](https://img.shields.io/badge/PayPal-00457C?&color=00457c&logo=paypal&logoColor=white)](https://www.paypal.com/paypalme/thefes)


A jinja macro to easily find the cheapest block of hours to know when to turn on your dryer
A jinja macro to easily find the cheapest block of hours to know when to turn on your dryer (and much more)

# Why this macro

Expand Down
4 changes: 2 additions & 2 deletions cheapest_energy_hours.jinja
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- set _version = 'v5.5.1'-%}
{%- set _version = 'v5.5.2'-%}

{#- sub-macro to format datetimes to selected time_format -#}
{%- macro _format_date(datetime, time_format) -%}
Expand Down Expand Up @@ -636,7 +636,7 @@
time_min = _format_date(as_datetime(time_min), time_format | default(none)),
time_max = _format_date(as_datetime(time_max), time_format | default(none)),
is_now = is_now,
all = split_all
all = split_all | to_json
)
-%}
{#- output the data -#}
Expand Down

0 comments on commit ae24cb4

Please sign in to comment.