-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup fails for 2022.5.b0 #143
Comments
Same issue for me, on Core Beta 2022.5.0b0. |
Same issue for me! `Logger: homeassistant.helpers.event Error while processing template: Template("{% set l=state_attr('sensor.nordpool_kwh_oslo_nok_3_10_025', 'raw_today')|sort(attribute='value') %} {{ (now() >= l[0].start and now() <= l[0].end) or (now() >= l[1].start and now() <= l[1].end) or (now() >= l[2].start and now() <= l[2].end) or (now() >= l[3].start and now() <= l[3].end) or (now() >= l[4].start and now() <= l[4].end) or (now() >= l[5].start and now() <= l[5].end) or (now() >= l[6].start and now() <= l[6].end) or (now() >= l[7].start and now() <= l[7].end) or (now() >= l[8].start and now() <= l[8].end) or (now() >= l[9].start and now() <= l[9].end) or (now() >= l[10].start and now() <= l[10].end) or (now() >= l[11].start and now() <= l[11].end) or (now() >= l[12].start and now() <= l[12].end) or (now() >= l[13].start and now() <= l[13].end) or (now() >= l[14].start and now() <= l[14].end) or (now() >= l[15].start and now() <= l[15].end) or (now() >= l[16].start and now() <= l[16].end) or (now() >= l[17].start and now() <= l[17].end) or (now() >= l[18].start and now() <= l[18].end) or (now() >= l[19].start and now() <= l[19].end) or (now() >= l[20].start and now() <= l[20].end) }}") The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Is there any plan to transition to the built-in event helpers? Sounds like a small change but I'm not a programmer:( "in most cases, a one-line drop-in replacement" https://developers.home-assistant.io/blog/2022/04/20/saying-goodbye-to-event_time_changed/ |
I haven't had time to investigate it. But I highly doubt we can just drop in and replace it, as I have modified the code to support other timezones. |
I believe you when you say that, as I said not a programmer:/ It's just that the integration will not work when they release 2022-05 version. You have UTC time changes so I guess this should work with times zones, but again that do I know. Please let me know if there is anything I can do or help and I will try my best. |
Anybody want to test #145 ? This should work with the latest dev version |
Maybe I did something wrong, but I couldn't get it to work.
|
It would be easier for me to test this if it showed up as a beta version in HACS. I manually copied the 4 changed files from 0.0.6 and got the same error as Skeletorjus. |
Same here, I tested with HA version 2022.5.0b7. |
Same here, this is no longer just the beta version. I'm on the official branch, and my nordpool just stopped working after 2022.5.0 update |
That's strange, that typing signature is copied directly from homeassistant and works fine in my dev docker. What python version are you running? |
Thanks @Hellowlol for fixing this :) |
Version of the custom_component
0.0.5
Homeassistant version
2022.5.0b0
Configuration
Describe the bug
Home Assistant throws an error while trying to setup the sensor,
Debug log
The text was updated successfully, but these errors were encountered: