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:
scheric 2020-10-07 22:42:01 +02:00 committed by GitHub
parent b8f291d58e
commit 3d9d90c4c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View file

@ -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(