mirror of
https://github.com/elisspace/core.git
synced 2026-09-29 22:09:55 +00:00
Change monoprice config flow to sync (#75306)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user