mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Update h* tests to use entity & device registry fixtures (#103866)
* Update h* tests to use entity & device registry fixtures * Add missed lines
This commit is contained in:
committed by
GitHub
parent
3a531f5698
commit
eda475fe25
@@ -622,9 +622,9 @@ async def test_aid_generation_no_unique_ids_handles_collision(
|
||||
|
||||
async def test_handle_unique_id_change(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
) -> None:
|
||||
"""Test handling unique id changes."""
|
||||
entity_registry = er.async_get(hass)
|
||||
light = entity_registry.async_get_or_create("light", "demo", "old_unique")
|
||||
config_entry = MockConfigEntry(domain="test", data={})
|
||||
config_entry.add_to_hass(hass)
|
||||
|
||||
Reference in New Issue
Block a user