Update d-e* tests to use entity & device registry fixtures (#103804)
This commit is contained in:
parent
2cffb4df6d
commit
81450f0117
20 changed files with 139 additions and 115 deletions
|
@ -59,13 +59,14 @@ async def test_async_setup_entry_not_ready(
|
|||
|
||||
|
||||
async def test_device_info(
|
||||
hass: HomeAssistant, setup_integration: ComponentSetup
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
setup_integration: ComponentSetup,
|
||||
) -> None:
|
||||
"""Test device info."""
|
||||
await setup_integration()
|
||||
|
||||
entry = hass.config_entries.async_entries(DOMAIN)[0]
|
||||
device_registry = dr.async_get(hass)
|
||||
device = device_registry.async_get_device(identifiers={(DOMAIN, entry.entry_id)})
|
||||
|
||||
assert device.connections == {("mac", "aa:bb:cc:dd:ee:ff")}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue