Use reference strings in Tile (#41328)
This commit is contained in:
1 parent
dcf0f9d3f3
commit
3cf6535011
3 files changed
+4
-4
No files matched your search
@@ -47,6 +47,6 @@ class TileFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
user_input[CONF_USERNAME], user_input[CONF_PASSWORD], session=session
|
||||
)
|
||||
except TileError:
|
||||
return await self._show_form({"base": "invalid_credentials"})
|
||||
return await self._show_form({"base": "invalid_auth"})
|
||||
|
||||
return self.async_create_entry(title=user_input[CONF_USERNAME], data=user_input)
|
||||
@@ -10,10 +10,10 @@
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
"invalid_credentials": "Invalid Tile credentials provided."
|
||||
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]"
|
||||
},
|
||||
"abort": {
|
||||
"already_configured": "This Tile account is already registered."
|
||||
"already_configured": "[%key:common::config_flow::abort::already_configured_account%]"
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
|
||||
Reference in new issue
Block a user