1
mirror of https://github.com/home-assistant/core synced 2024-09-06 10:29:55 +02:00

Fix canary test doing IO and failing when the cloud is offline (#41799)

This commit is contained in:
J. Nick Koston 2020-10-13 15:57:00 -05:00 committed by GitHub
parent ff2872e376
commit 3748c3c985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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