From 05ac67eba2be3c6bedb990eae466c46b2b51487c Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 10 Aug 2023 18:24:42 +0200 Subject: [PATCH] Adjust unifi tests which create devices (#98211) --- tests/components/unifi/conftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/components/unifi/conftest.py b/tests/components/unifi/conftest.py index 19574a9ab42..ca0c855d1ab 100644 --- a/tests/components/unifi/conftest.py +++ b/tests/components/unifi/conftest.py @@ -59,6 +59,7 @@ def mock_device_registry(hass): """Mock device registry.""" dev_reg = dr.async_get(hass) config_entry = MockConfigEntry(domain="something_else") + config_entry.add_to_hass(hass) for idx, device in enumerate( (