Clean up use of deprecated async_get_registry methods (#72001)
This commit is contained in:
parent
39b27e4d38
commit
7d2deae592
50 changed files with 51 additions and 51 deletions
|
@ -41,7 +41,7 @@ async def async_get_triggers(
|
|||
hass: HomeAssistant, device_id: str
|
||||
) -> list[dict[str, Any]]:
|
||||
"""List device triggers for Device Tracker devices."""
|
||||
registry = await entity_registry.async_get_registry(hass)
|
||||
registry = entity_registry.async_get(hass)
|
||||
triggers = []
|
||||
|
||||
# Get all the integrations entities for this device
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue