Use reference strings in Vesync (#41341)
* Update strings.json * Update config_flow.py * Update test_config_flow.py
This commit is contained in:
1 parent
ba81c0c043
commit
b8287d6db6
3 files changed
+7
-7
No files matched your search
@@ -17,7 +17,7 @@ async def test_abort_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"] == "single_instance_allowed"
|
||||
|
||||
|
||||
async def test_invalid_login_error(hass):
|
||||
@@ -29,7 +29,7 @@ async def test_invalid_login_error(hass):
|
||||
result = await flow.async_step_user(user_input=test_dict)
|
||||
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_FORM
|
||||
assert result["errors"] == {"base": "invalid_login"}
|
||||
assert result["errors"] == {"base": "invalid_auth"}
|
||||
|
||||
|
||||
async def test_config_flow_configuration_yaml(hass):
|
||||
|
||||
Reference in new issue
Block a user