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

Cleanup deprecated async_get_registry in tests (#72059)

This commit is contained in:
epenet
2022-05-18 13:12:38 +02:00
committed by GitHub
parent 8492f282cb
commit 4eb46d45ca
19 changed files with 38 additions and 46 deletions

View File

@@ -172,7 +172,7 @@ async def test_device_info(hass: HomeAssistant) -> None:
assert device.model == HYPERION_MODEL_NAME
assert device.name == TEST_INSTANCE_1["friendly_name"]
entity_registry = await er.async_get_registry(hass)
entity_registry = er.async_get(hass)
entities_from_device = [
entry.entity_id
for entry in er.async_entries_for_device(entity_registry, device.id)