Adjust homekit tests which create devices (#98193)

This commit is contained in:
Erik Montnemery 2023-08-10 18:23:17 +02:00 committed by GitHub
parent 4329a47ef8
commit 07b19b3dd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)