Skip to content

End of Daylight Saving Time is not handled correctly #427

@uphillbattle

Description

@uphillbattle

Version of the custom_component

0.0.15

Homeassistant version

2024.10.4

Configuration

Configured in UI

Describe the bug

End of DST is not handled correctly. The hour

start: 2024-10-27T02:00:00+02:00
end: 2024-10-27T02:00:00+01:00

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions