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:
parent
ff2872e376
commit
3748c3c985
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user