mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Adjust homekit tests which create devices (#98193)
This commit is contained in:
parent
4329a47ef8
commit
07b19b3dd9
@ -1019,6 +1019,7 @@ async def test_homekit_unpair_not_homekit_device(
|
|||||||
not_homekit_entry = MockConfigEntry(
|
not_homekit_entry = MockConfigEntry(
|
||||||
domain="not_homekit", data={CONF_NAME: "mock_name", CONF_PORT: 12345}
|
domain="not_homekit", data={CONF_NAME: "mock_name", CONF_PORT: 12345}
|
||||||
)
|
)
|
||||||
|
not_homekit_entry.add_to_hass(hass)
|
||||||
entity_id = "light.demo"
|
entity_id = "light.demo"
|
||||||
hass.states.async_set("light.demo", "on")
|
hass.states.async_set("light.demo", "on")
|
||||||
homekit = _mock_homekit(hass, entry, HOMEKIT_MODE_BRIDGE)
|
homekit = _mock_homekit(hass, entry, HOMEKIT_MODE_BRIDGE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user