diff --git a/tests/components/shelly/test_config_flow.py b/tests/components/shelly/test_config_flow.py index 1796847bd74..bef018e7d91 100644 --- a/tests/components/shelly/test_config_flow.py +++ b/tests/components/shelly/test_config_flow.py @@ -36,7 +36,7 @@ async def test_form(hass): assert result["type"] == "form" assert result["errors"] == {} - with patch( + with patch("aioshelly.COAP", return_value=Mock(initialize=AsyncMock())), patch( "aioshelly.get_info", return_value={"mac": "test-mac", "type": "SHSW-1", "auth": False}, ), patch(