Attach template triggers at start eagerly (#113120)
This method calls async_initialize_triggers which is likely to never suspend and the attach can avoid being scheduled on the event loop
This commit is contained in:
parent
42527862e0
commit
51f871227e
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class TriggerUpdateCoordinator(DataUpdateCoordinator):
|
|||
await self._attach_triggers()
|
||||
else:
|
||||
self._unsub_start = self.hass.bus.async_listen_once(
|
||||
EVENT_HOMEASSISTANT_START, self._attach_triggers
|
||||
EVENT_HOMEASSISTANT_START, self._attach_triggers, run_immediately=True
|
||||
)
|
||||
|
||||
for platform_domain in PLATFORMS:
|
||||
|
|
Loading…
Add table
Reference in a new issue