Use common string names in ipp config flow (#41409)
* connection_error->cannot_connect * connection_error->cannot_connect in config flow
This commit is contained in:
parent
b8f291d58e
commit
3d9d90c4c8
3 changed files with 7 additions and 7 deletions
|
@ -65,7 +65,7 @@ async def test_connection_error(
|
|||
|
||||
assert result["step_id"] == "user"
|
||||
assert result["type"] == RESULT_TYPE_FORM
|
||||
assert result["errors"] == {"base": "connection_error"}
|
||||
assert result["errors"] == {"base": "cannot_connect"}
|
||||
|
||||
|
||||
async def test_zeroconf_connection_error(
|
||||
|
@ -82,7 +82,7 @@ async def test_zeroconf_connection_error(
|
|||
)
|
||||
|
||||
assert result["type"] == RESULT_TYPE_ABORT
|
||||
assert result["reason"] == "connection_error"
|
||||
assert result["reason"] == "cannot_connect"
|
||||
|
||||
|
||||
async def test_zeroconf_confirm_connection_error(
|
||||
|
@ -97,7 +97,7 @@ async def test_zeroconf_confirm_connection_error(
|
|||
)
|
||||
|
||||
assert result["type"] == RESULT_TYPE_ABORT
|
||||
assert result["reason"] == "connection_error"
|
||||
assert result["reason"] == "cannot_connect"
|
||||
|
||||
|
||||
async def test_user_connection_upgrade_required(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue