Remove deprecated async_get_registry (#91928)
Deprecated in 2021 via #46265, report was added a year ago in #72088
This commit is contained in:
parent
f3838dde3a
commit
fba7c6cacd
3 changed files with 0 additions and 44 deletions
|
@ -42,13 +42,11 @@ from homeassistant.core import (
|
|||
valid_entity_id,
|
||||
)
|
||||
from homeassistant.exceptions import MaxLengthExceeded
|
||||
from homeassistant.loader import bind_hass
|
||||
from homeassistant.util import slugify, uuid as uuid_util
|
||||
from homeassistant.util.json import format_unserializable_data
|
||||
|
||||
from . import device_registry as dr, storage
|
||||
from .device_registry import EVENT_DEVICE_REGISTRY_UPDATED
|
||||
from .frame import report
|
||||
from .json import JSON_DUMP, find_paths_unserializable_data
|
||||
from .typing import UNDEFINED, UndefinedType
|
||||
|
||||
|
@ -1097,19 +1095,6 @@ async def async_load(hass: HomeAssistant) -> None:
|
|||
await hass.data[DATA_REGISTRY].async_load()
|
||||
|
||||
|
||||
@bind_hass
|
||||
async def async_get_registry(hass: HomeAssistant) -> EntityRegistry:
|
||||
"""Get entity registry.
|
||||
|
||||
This is deprecated and will be removed in the future. Use async_get instead.
|
||||
"""
|
||||
report(
|
||||
"uses deprecated `async_get_registry` to access entity registry, use async_get"
|
||||
" instead"
|
||||
)
|
||||
return async_get(hass)
|
||||
|
||||
|
||||
@callback
|
||||
def async_entries_for_device(
|
||||
registry: EntityRegistry, device_id: str, include_disabled_entities: bool = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue