From e8f12aad5579a1e5e3930957a46ea6f3dd9beecf Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 7 Mar 2024 12:30:10 -1000 Subject: [PATCH] Revert "sun and pattern time changes from automations also block startup" This reverts commit 6de2defa0586165c2918ce006cf57aa3acaae730. --- homeassistant/helpers/event.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/helpers/event.py b/homeassistant/helpers/event.py index 0233eea37d6f..4975bbce4867 100644 --- a/homeassistant/helpers/event.py +++ b/homeassistant/helpers/event.py @@ -1694,7 +1694,7 @@ class SunListener: """Handle solar event.""" self._unsub_sun = None self._listen_next_sun_event() - self.hass.async_run_periodic_hass_job(self.job) + self.hass.async_run_hass_job(self.job) @callback def _handle_config_event(self, _event: Any) -> None: @@ -1780,7 +1780,7 @@ class _TrackUTCTimeChange: # time when the timer was scheduled utc_now = time_tracker_utcnow() localized_now = dt_util.as_local(utc_now) if self.local else utc_now - hass.async_run_periodic_hass_job(self.job, localized_now) + hass.async_run_hass_job(self.job, localized_now) if TYPE_CHECKING: assert self._pattern_time_change_listener_job is not None self._cancel_callback = async_track_point_in_utc_time(