mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +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:
|
def _update_state_and_setup_listener(self) -> None:
|
||||||
"""Update state and setup listener for next interval."""
|
"""Update state and setup listener for next interval."""
|
||||||
now = dt_util.utcnow()
|
now = dt_util.now()
|
||||||
self._attr_event = self.update_event(now)
|
self._attr_event = self.update_event(now)
|
||||||
self.unsub = async_track_point_in_utc_time(
|
self.unsub = async_track_point_in_utc_time(
|
||||||
self.hass, self.point_in_time_listener, self.get_next_interval(now)
|
self.hass, self.point_in_time_listener, self.get_next_interval(now)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user