Make assist_pipeline an after dependency of cloud (#92057)
This commit is contained in:
parent
ed737f306b
commit
2750a5c3e6
4 changed files with 16 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue