Fix reauth strings in Teslemetry (#128426)

* config strings

* remove entry_data
This commit is contained in:
Brett Adams 2024-10-15 18:47:26 +10:00 committed by GitHub
parent 3ba3fbf4a5
commit 0d857d3e6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View file

@ -22,6 +22,7 @@ from .const import DOMAIN, LOGGER
TESLEMETRY_SCHEMA = vol.Schema({vol.Required(CONF_ACCESS_TOKEN): str})
DESCRIPTION_PLACEHOLDERS = {
"name": "Teslemetry",
"short_url": "teslemetry.com/console",
"url": "[teslemetry.com/console](https://teslemetry.com/console)",
}

View file

@ -1,7 +1,9 @@
{
"config": {
"abort": {
"already_configured": "Account is already configured"
"already_configured": "Account is already configured",
"reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]",
"reauth_account_mismatch": "The reauthentication account does not match the original account"
},
"error": {
"invalid_access_token": "[%key:common::config_flow::error::invalid_access_token%]",
@ -15,6 +17,13 @@
"access_token": "[%key:common::config_flow::data::access_token%]"
},
"description": "Enter an access token from {url}."
},
"reauth_confirm": {
"title": "[%key:common::config_flow::title::reauth%]",
"description": "The {name} integration needs to re-authenticate your account, please enter an access token from {url}",
"data": {
"access_token": "[%key:common::config_flow::data::access_token%]"
}
}
}
},