diff --git a/tests/components/homekit/test_homekit.py b/tests/components/homekit/test_homekit.py
index 109f4205901afaf472bc4ac2915d7978e51c6092..02807ba65573fa1287bddfb660b1c4bc7c2cdcfa 100644
--- a/tests/components/homekit/test_homekit.py
+++ b/tests/components/homekit/test_homekit.py
@@ -1019,6 +1019,7 @@ async def test_homekit_unpair_not_homekit_device(
     not_homekit_entry = MockConfigEntry(
         domain="not_homekit", data={CONF_NAME: "mock_name", CONF_PORT: 12345}
     )
+    not_homekit_entry.add_to_hass(hass)
     entity_id = "light.demo"
     hass.states.async_set("light.demo", "on")
     homekit = _mock_homekit(hass, entry, HOMEKIT_MODE_BRIDGE)