Use registry fixtures in tests (r) (#118293)
This commit is contained in:
parent
2545b7d3bb
commit
8d8696075b
30 changed files with 234 additions and 180 deletions
|
@ -49,11 +49,12 @@ async def test_async_setup_entry_auth_failed(
|
|||
|
||||
@pytest.mark.freeze_time("2021-12-03 00:00:00+00:00")
|
||||
async def test_device_info(
|
||||
hass: HomeAssistant, aioclient_mock: AiohttpClientMocker
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
aioclient_mock: AiohttpClientMocker,
|
||||
) -> None:
|
||||
"""Test device info."""
|
||||
entry = await setup_integration(hass, aioclient_mock)
|
||||
device_registry = dr.async_get(hass)
|
||||
await hass.async_block_till_done()
|
||||
device = device_registry.async_get_device(identifiers={(DOMAIN, entry.entry_id)})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue