mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +00:00
Avoid creating sockets in homekit port available tests (#56342)
This commit is contained in:
parent
9b00e0cb7a
commit
45046941c6
@ -1087,7 +1087,9 @@ async def test_converting_bridge_to_accessory_mode(hass, hk_driver, mock_get_sou
|
|||||||
with patch(
|
with patch(
|
||||||
"homeassistant.components.homekit.async_setup_entry",
|
"homeassistant.components.homekit.async_setup_entry",
|
||||||
return_value=True,
|
return_value=True,
|
||||||
) as mock_setup_entry:
|
) as mock_setup_entry, patch(
|
||||||
|
"homeassistant.components.homekit.async_port_is_available"
|
||||||
|
):
|
||||||
result3 = await hass.config_entries.options.async_configure(
|
result3 = await hass.config_entries.options.async_configure(
|
||||||
result2["flow_id"],
|
result2["flow_id"],
|
||||||
user_input={"camera_copy": ["camera.tv"]},
|
user_input={"camera_copy": ["camera.tv"]},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user