Use reference strings in Tesla (#41238)
This commit is contained in:
1 parent
5745e64cab
commit
f679acd3fa
3 files changed
+10
-11
No files matched your search
@@ -70,7 +70,7 @@ async def test_form_invalid_auth(hass):
|
||||
)
|
||||
|
||||
assert result2["type"] == "form"
|
||||
assert result2["errors"] == {"base": "invalid_credentials"}
|
||||
assert result2["errors"] == {"base": "invalid_auth"}
|
||||
|
||||
|
||||
async def test_form_cannot_connect(hass):
|
||||
@@ -89,7 +89,7 @@ async def test_form_cannot_connect(hass):
|
||||
)
|
||||
|
||||
assert result2["type"] == "form"
|
||||
assert result2["errors"] == {"base": "connection_error"}
|
||||
assert result2["errors"] == {"base": "cannot_connect"}
|
||||
|
||||
|
||||
async def test_form_repeat_identifier(hass):
|
||||
@@ -110,7 +110,7 @@ async def test_form_repeat_identifier(hass):
|
||||
)
|
||||
|
||||
assert result2["type"] == "form"
|
||||
assert result2["errors"] == {CONF_USERNAME: "identifier_exists"}
|
||||
assert result2["errors"] == {CONF_USERNAME: "already_configured_account"}
|
||||
|
||||
|
||||
async def test_import(hass):
|
||||
|
||||
Reference in new issue
Block a user