mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
Fix holiday using utc instead of local time (#120432)
This commit is contained in:
parent
ba40340f82
commit
0f7229f55f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user