Use reference strings in Tesla (#41270)
* Update strings.json * Update config_flow.py * Update test_config_flow.py
This commit is contained in:
parent
4798f37c6e
commit
8bae9b2124
3 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,7 @@ class TeslaConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
return self.async_show_form(
|
||||
step_id="user",
|
||||
data_schema=DATA_SCHEMA,
|
||||
errors={CONF_USERNAME: "already_configured_account"},
|
||||
errors={CONF_USERNAME: "already_configured"},
|
||||
description_placeholders={},
|
||||
)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config": {
|
||||
"error": {
|
||||
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
||||
"already_configured_account": "[%key:common::config_flow::abort::already_configured_account%]",
|
||||
"already_configured": "[%key:common::config_flow::abort::already_configured_account%]",
|
||||
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]"
|
||||
},
|
||||
"step": {
|
||||
|
|
|
@ -110,7 +110,7 @@ async def test_form_repeat_identifier(hass):
|
|||
)
|
||||
|
||||
assert result2["type"] == "form"
|
||||
assert result2["errors"] == {CONF_USERNAME: "already_configured_account"}
|
||||
assert result2["errors"] == {CONF_USERNAME: "already_configured"}
|
||||
|
||||
|
||||
async def test_import(hass):
|
||||
|
|
Loading…
Add table
Reference in a new issue