Use registry fixtures in tests (r) (#118293)

This commit is contained in:
epenet 2024-05-28 14:23:31 +02:00 committed by GitHub
parent 2545b7d3bb
commit 8d8696075b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 234 additions and 180 deletions

View file

@ -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)})