Avoid creating sockets in homekit port available tests (#56342)

pull/56353/head
Erik Montnemery 2021-09-17 16:16:57 +02:00 committed by GitHub
parent 9b00e0cb7a
commit 45046941c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1087,7 +1087,9 @@ async def test_converting_bridge_to_accessory_mode(hass, hk_driver, mock_get_sou
with patch(
"homeassistant.components.homekit.async_setup_entry",
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(
result2["flow_id"],
user_input={"camera_copy": ["camera.tv"]},