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

This commit is contained in:
Erik Montnemery
2021-09-17 16:16:57 +02:00
committed by GitHub
parent 9b00e0cb7a
commit 45046941c6

View File

@@ -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"]},