mirror of
https://github.com/home-assistant/core.git
synced 2026-05-03 19:41:15 +02:00
Clean up use of deprecated async_get_registry methods (#72001)
This commit is contained in:
@@ -33,7 +33,7 @@ async def async_get_actions(
|
||||
hass: HomeAssistant, device_id: str
|
||||
) -> list[dict[str, str]]:
|
||||
"""List device actions for NEW_NAME devices."""
|
||||
registry = await entity_registry.async_get_registry(hass)
|
||||
registry = entity_registry.async_get(hass)
|
||||
actions = []
|
||||
|
||||
# TODO Read this comment and remove it.
|
||||
|
||||
@@ -35,7 +35,7 @@ async def async_get_conditions(
|
||||
hass: HomeAssistant, device_id: str
|
||||
) -> list[dict[str, str]]:
|
||||
"""List device conditions for NEW_NAME devices."""
|
||||
registry = await entity_registry.async_get_registry(hass)
|
||||
registry = entity_registry.async_get(hass)
|
||||
conditions = []
|
||||
|
||||
# Get all the integrations entities for this device
|
||||
|
||||
@@ -41,7 +41,7 @@ async def async_get_triggers(
|
||||
hass: HomeAssistant, device_id: str
|
||||
) -> list[dict[str, Any]]:
|
||||
"""List device triggers for NEW_NAME devices."""
|
||||
registry = await entity_registry.async_get_registry(hass)
|
||||
registry = entity_registry.async_get(hass)
|
||||
triggers = []
|
||||
|
||||
# TODO Read this comment and remove it.
|
||||
|
||||
Reference in New Issue
Block a user