Use common Strings for Ambiclimate config flow (#41100)
This commit is contained in:
1 parent
01e47a977b
commit
4c00ff98ea
3 files changed
+10
-10
No files matched your search
@@ -30,7 +30,7 @@ async def test_abort_if_no_implementation_registered(hass):
|
||||
|
||||
result = await flow.async_step_user()
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_ABORT
|
||||
assert result["reason"] == "no_config"
|
||||
assert result["reason"] == "oauth2_missing_configuration"
|
||||
|
||||
|
||||
async def test_abort_if_already_setup(hass):
|
||||
@@ -40,12 +40,12 @@ async def test_abort_if_already_setup(hass):
|
||||
with patch.object(hass.config_entries, "async_entries", return_value=[{}]):
|
||||
result = await flow.async_step_user()
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_ABORT
|
||||
assert result["reason"] == "already_setup"
|
||||
assert result["reason"] == "already_configured_account"
|
||||
|
||||
with patch.object(hass.config_entries, "async_entries", return_value=[{}]):
|
||||
result = await flow.async_step_code()
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_ABORT
|
||||
assert result["reason"] == "already_setup"
|
||||
assert result["reason"] == "already_configured_account"
|
||||
|
||||
|
||||
async def test_full_flow_implementation(hass):
|
||||
@@ -107,7 +107,7 @@ async def test_already_setup(hass):
|
||||
result = await flow.async_step_user()
|
||||
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_ABORT
|
||||
assert result["reason"] == "already_setup"
|
||||
assert result["reason"] == "already_configured_account"
|
||||
|
||||
|
||||
async def test_view(hass):
|
||||
|
||||
Reference in new issue
Block a user