From 3748c3c985a09f2fff2e61064cdc59ab396d0ca7 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 13 Oct 2020 15:57:00 -0500 Subject: [PATCH] Fix canary test doing IO and failing when the cloud is offline (#41799) --- tests/components/canary/test_config_flow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/components/canary/test_config_flow.py b/tests/components/canary/test_config_flow.py index 36c6990a663..f5a25638585 100644 --- a/tests/components/canary/test_config_flow.py +++ b/tests/components/canary/test_config_flow.py @@ -105,7 +105,9 @@ async def test_user_form_single_instance_allowed(hass, canary_config_flow): async def test_options_flow(hass): """Test updating options.""" - with patch("homeassistant.components.canary.PLATFORMS", []): + with patch("homeassistant.components.canary.PLATFORMS", []), patch( + "homeassistant.components.canary.Api" + ): entry = await init_integration(hass) assert entry.options[CONF_FFMPEG_ARGUMENTS] == DEFAULT_FFMPEG_ARGUMENTS