From 9f07ca069d20720e4dbb0261088328b58957ab57 Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Thu, 25 Mar 2021 14:19:32 +0100 Subject: [PATCH] Fix zha manual flow test (#48317) --- tests/components/zha/test_config_flow.py | 1 + 1 file changed, 1 insertion(+) 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(