Make storage load tasks background tasks to avoid delaying shutdown (#116332)

This commit is contained in:
J. Nick Koston
2024-04-28 08:14:15 -05:00
committed by GitHub
parent ce42ad187c
commit 66e86170b1

View File

@@ -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():