mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Update f-g* tests to use entity & device registry fixtures (#103841)
This commit is contained in:
committed by
GitHub
parent
b9bc6ca070
commit
04a497343d
@@ -72,6 +72,7 @@ async def test_setup(hass: HomeAssistant, fritz: Mock) -> None:
|
||||
)
|
||||
async def test_update_unique_id(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
fritz: Mock,
|
||||
entitydata: dict,
|
||||
old_unique_id: str,
|
||||
@@ -85,7 +86,6 @@ async def test_update_unique_id(
|
||||
)
|
||||
entry.add_to_hass(hass)
|
||||
|
||||
entity_registry = er.async_get(hass)
|
||||
entity: er.RegistryEntry = entity_registry.async_get_or_create(
|
||||
**entitydata,
|
||||
config_entry=entry,
|
||||
@@ -131,6 +131,7 @@ async def test_update_unique_id(
|
||||
)
|
||||
async def test_update_unique_id_no_change(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
fritz: Mock,
|
||||
entitydata: dict,
|
||||
unique_id: str,
|
||||
@@ -143,7 +144,6 @@ async def test_update_unique_id_no_change(
|
||||
)
|
||||
entry.add_to_hass(hass)
|
||||
|
||||
entity_registry = er.async_get(hass)
|
||||
entity = entity_registry.async_get_or_create(
|
||||
**entitydata,
|
||||
config_entry=entry,
|
||||
|
||||
Reference in New Issue
Block a user