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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 321 additions and 262 deletions

View file

@ -102,10 +102,10 @@ async def test_select_entity_registering_device(
hass: HomeAssistant,
init_select: ConfigEntry,
pipeline_data: PipelineData,
device_registry: dr.DeviceRegistry,
) -> None:
"""Test entity registering as an assist device."""
dev_reg = dr.async_get(hass)
device = dev_reg.async_get_device(identifiers={("test", "test")})
device = device_registry.async_get_device(identifiers={("test", "test")})
assert device is not None
# Test device is registered