You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is missing. The day in question only has 24 hours in the Nordpool sensor, while the day actually has 25 hours since the clock is turned back one hour from 3am (Daylight Saving Time) to 2am (Standard Time).
Debug log
2024-10-26 17:32:40.580 INFO (MainThread) [custom_components.nordpool.aio_price] Hour has the same start and end, most likly due to dst change {'start': datetime.datetime(2024, 10, 27, 0, 0, tzinfo=<UTC>), 'end': datetime.datetime(2024, 10, 27, 1, 0, tzinfo=<UTC>), 'value': 14.09} exluded this hour
The integration happily excludes this hour. Should be improved to accept that two days a year are 23 and 25 hours, respectively.
The text was updated successfully, but these errors were encountered:
Yeah, i agree this should be handled better. Im not sure why ended up using the current solution. I think we should check if there price a valid (so not None, null) if it skip the hours, if not allow it to be added.
Version of the custom_component
0.0.15Homeassistant version
2024.10.4
Configuration
Configured in UI
Describe the bug
End of DST is not handled correctly. The hour
is missing. The day in question only has 24 hours in the Nordpool sensor, while the day actually has 25 hours since the clock is turned back one hour from 3am (Daylight Saving Time) to 2am (Standard Time).
Debug log
The integration happily excludes this hour. Should be improved to accept that two days a year are 23 and 25 hours, respectively.
The text was updated successfully, but these errors were encountered: