From 82dae7d875f001ed2a5eadbb400bf0bca93d4cdd Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 5 Nov 2026 18:22:14 +0000 Subject: [PATCH] Avoid config entry unique_id collisions in switchbot tests (#190670) --- tests/components/switchbot/test_services.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/components/switchbot/test_services.py b/tests/components/switchbot/test_services.py index 7ba2bf09275f..89fb69e97f9a 100644 --- a/tests/components/switchbot/test_services.py +++ b/tests/components/switchbot/test_services.py @@ -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(