Fix holiday using utc instead of local time (#120432)

This commit is contained in:
G Johansson 2024-06-26 08:45:53 +02:00 committed by GitHub
parent ba40340f82
commit 0f7229f55f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,7 +122,7 @@ class HolidayCalendarEntity(CalendarEntity):
def _update_state_and_setup_listener(self) -> None:
"""Update state and setup listener for next interval."""
now = dt_util.utcnow()
now = dt_util.now()
self._attr_event = self.update_event(now)
self.unsub = async_track_point_in_utc_time(
self.hass, self.point_in_time_listener, self.get_next_interval(now)