diff --git a/tests/components/zha/test_config_flow.py b/tests/components/zha/test_config_flow.py index b3dbefbdbf0..f41c734537b 100644 --- a/tests/components/zha/test_config_flow.py +++ b/tests/components/zha/test_config_flow.py @@ -86,6 +86,7 @@ async def test_user_flow_show_form(hass): assert result["step_id"] == "user" +@patch("serial.tools.list_ports.comports", MagicMock(return_value=[])) async def test_user_flow_show_manual(hass): """Test user flow manual entry when no comport detected.""" result = await hass.config_entries.flow.async_init(