mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00: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…
x
Reference in New Issue
Block a user