mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Make storage load tasks background tasks to avoid delaying shutdown (#116332)
This commit is contained in:
parent
ce42ad187c
commit
66e86170b1
@ -278,7 +278,7 @@ class Store(Generic[_T]):
|
||||
if self._load_task:
|
||||
return await self._load_task
|
||||
|
||||
load_task = self.hass.async_create_task(
|
||||
load_task = self.hass.async_create_background_task(
|
||||
self._async_load(), f"Storage load {self.key}", eager_start=True
|
||||
)
|
||||
if not load_task.done():
|
||||
|
Loading…
x
Reference in New Issue
Block a user