Update h* tests to use entity & device registry fixtures (#103866)

* Update h* tests to use entity & device registry fixtures

* Add missed lines
This commit is contained in:
Jan-Philipp Benecke
2023-11-12 19:52:32 +01:00
committed by GitHub
parent 3a531f5698
commit eda475fe25
48 changed files with 330 additions and 240 deletions

View File

@@ -16,9 +16,10 @@ def create_camera(accessory):
accessory.add_service(ServicesTypes.CAMERA_RTP_STREAM_MANAGEMENT)
async def test_migrate_unique_ids(hass: HomeAssistant, utcnow) -> None:
async def test_migrate_unique_ids(
hass: HomeAssistant, entity_registry: er.EntityRegistry, utcnow
) -> None:
"""Test migrating entity unique ids."""
entity_registry = er.async_get(hass)
aid = get_next_aid()
camera = entity_registry.async_get_or_create(
"camera",