Change monoprice config flow to sync (#75306)

This commit is contained in:
On Freund
2022-07-26 10:50:33 +02:00
committed by Franck Nijhof
parent a3950937e0
commit ec4835ef04
2 changed files with 5 additions and 5 deletions
@@ -33,7 +33,7 @@ async def test_form(hass):
assert result["errors"] == {}
with patch(
"homeassistant.components.monoprice.config_flow.get_async_monoprice",
"homeassistant.components.monoprice.config_flow.get_monoprice",
return_value=True,
), patch(
"homeassistant.components.monoprice.async_setup_entry",
@@ -60,7 +60,7 @@ async def test_form_cannot_connect(hass):
)
with patch(
"homeassistant.components.monoprice.config_flow.get_async_monoprice",
"homeassistant.components.monoprice.config_flow.get_monoprice",
side_effect=SerialException,
):
result2 = await hass.config_entries.flow.async_configure(
@@ -78,7 +78,7 @@ async def test_generic_exception(hass):
)
with patch(
"homeassistant.components.monoprice.config_flow.get_async_monoprice",
"homeassistant.components.monoprice.config_flow.get_monoprice",
side_effect=Exception,
):
result2 = await hass.config_entries.flow.async_configure(