Avoid config entry unique_id collisions in switchbot tests (#190670)

This commit is contained in:
Erik Montnemery
2026-11-05 19:22:14 +01:00
committed by GitHub
parent 1588f32e7d
commit 82dae7d875
+3 -1
View File
@@ -166,7 +166,9 @@ async def test_device_entry_not_loaded(
):
await hass.config_entries.async_setup(entry.entry_id)
await hass.async_block_till_done(wait_background_tasks=True)
second_entry = mock_entry_encrypted_factory(sensor_type="keypad_vision")
second_entry = MockConfigEntry(
domain=DOMAIN, data={}, title="Not loaded", unique_id="112233445566"
)
second_entry.add_to_hass(hass)
device_entry = device_registry.async_get_or_create(