Make assist_pipeline an after dependency of cloud (#92057)

This commit is contained in:
Erik Montnemery 2023-04-26 13:45:32 +02:00 committed by GitHub
parent ed737f306b
commit 2750a5c3e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 4 deletions

View file

@ -23,6 +23,7 @@ from homeassistant.helpers.collection import (
StorageCollection,
StorageCollectionWebsocket,
)
from homeassistant.helpers.singleton import singleton
from homeassistant.helpers.storage import Store
from homeassistant.util import (
dt as dt_util,
@ -956,7 +957,8 @@ class PipelineRunDebug:
)
async def async_setup_pipeline_store(hass: HomeAssistant) -> None:
@singleton(DOMAIN)
async def async_setup_pipeline_store(hass: HomeAssistant) -> PipelineData:
"""Set up the pipeline storage collection."""
pipeline_store = PipelineStorageCollection(
Store(hass, STORAGE_VERSION, STORAGE_KEY)
@ -969,4 +971,4 @@ async def async_setup_pipeline_store(hass: HomeAssistant) -> None:
PIPELINE_FIELDS,
PIPELINE_FIELDS,
).async_setup(hass)
hass.data[DOMAIN] = PipelineData({}, pipeline_store)
return PipelineData({}, pipeline_store)