Closed deepcoder closed 1 year ago
@deepcoder looks like a bug. I'll look into it.
FYI you can do multiple imports in 1 row
{% from 'easy_time.jinja' import days_in_month, days_next_month, days_last_month %}
and this isn't valid, probably a copy/paste error on my part. That phrase will only return gain/lose x time
{{ next_dst_phrase() | as_datetime }}
Hi, Like @deepcoder , i have the same error returned (UndefinedError: 'day' is undefined) with the command '{{ last_day_in_month(8, 6) | as_datetime }}' It's a shame, but thank you all the same for your excellent work elsewhere PS: I tested it In The Developer Tools (Ha 2023.6.2)
Fixed in next release
Hi, Thanks you @Petro31 it works fine now
First, thank you for your work on this, useful!
In the Developer Tools (HA 2023.5.4), trying this function in the example, returns the error below:
last_day_in_month(month, weekday) https://github.com/Petro31/easy-time-jinja#last_day_in_monthmonth-weekday
returns:
Returns a rather odd answer:
I have to do multiple imports to get below to run: