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
|
@ -29,13 +29,13 @@ async def test_setup(hass: HomeAssistant, aioclient_mock: AiohttpClientMocker) -
|
|||
|
||||
|
||||
async def test_unique_id(
|
||||
hass: HomeAssistant, aioclient_mock: AiohttpClientMocker
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
aioclient_mock: AiohttpClientMocker,
|
||||
) -> None:
|
||||
"""Test unique id."""
|
||||
await setup_integration(hass, aioclient_mock)
|
||||
|
||||
entity_registry = er.async_get(hass)
|
||||
|
||||
main = entity_registry.async_get(MAIN_ENTITY_ID)
|
||||
assert main.unique_id == "028877455858"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue