1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Move issue_registry to homeassistant.helpers (#77299)

* Move issue_registry to homeassistant.helpers

* Add backwards compatibility
This commit is contained in:
Erik Montnemery
2022-08-25 11:32:06 +02:00
committed by GitHub
parent 79ab794e6a
commit dfed3ba75e
10 changed files with 174 additions and 159 deletions

View File

@@ -24,7 +24,13 @@ from .const import (
SIGNAL_BOOTSTRAP_INTEGRATONS,
)
from .exceptions import HomeAssistantError
from .helpers import area_registry, device_registry, entity_registry, recorder
from .helpers import (
area_registry,
device_registry,
entity_registry,
issue_registry,
recorder,
)
from .helpers.dispatcher import async_dispatcher_send
from .helpers.typing import ConfigType
from .setup import (
@@ -521,9 +527,10 @@ async def _async_set_up_integrations(
# Load the registries and cache the result of platform.uname().processor
await asyncio.gather(
area_registry.async_load(hass),
device_registry.async_load(hass),
entity_registry.async_load(hass),
area_registry.async_load(hass),
issue_registry.async_load(hass),
hass.async_add_executor_job(_cache_uname_processor),
)