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

Update a* tests to use device & entity registry fixtures (#103711)

This commit is contained in:
Franck Nijhof
2023-11-09 20:46:20 +01:00
committed by GitHub
parent b81f15725f
commit 04e0e2bd75
39 changed files with 321 additions and 262 deletions

View File

@@ -18,10 +18,11 @@ from .common import setup_platform
DEVICE_ID = "cover.garage_door"
async def test_entity_registry(hass: HomeAssistant) -> None:
async def test_entity_registry(
hass: HomeAssistant, entity_registry: er.EntityRegistry
) -> None:
"""Tests that the devices are registered in the entity registry."""
await setup_platform(hass, COVER_DOMAIN)
entity_registry = er.async_get(hass)
entry = entity_registry.async_get(DEVICE_ID)
assert entry.unique_id == "61cbz3b542d2o33ed2fz02721bda3324"