Add re-auth config flow strings for Sure Petcare (#104357)

This commit is contained in:
Klaas Schoute 2023-11-23 10:23:15 +01:00 committed by GitHub
parent 2febc9c4b3
commit 1144e33e68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -118,6 +118,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
return self.async_show_form( return self.async_show_form(
step_id="reauth_confirm", step_id="reauth_confirm",
description_placeholders={"username": self._username},
data_schema=vol.Schema({vol.Required(CONF_PASSWORD): str}), data_schema=vol.Schema({vol.Required(CONF_PASSWORD): str}),
errors=errors, errors=errors,
) )

View File

@ -6,6 +6,13 @@
"username": "[%key:common::config_flow::data::username%]", "username": "[%key:common::config_flow::data::username%]",
"password": "[%key:common::config_flow::data::password%]" "password": "[%key:common::config_flow::data::password%]"
} }
},
"reauth_confirm": {
"title": "[%key:common::config_flow::title::reauth%]",
"description": "Re-authenticate by entering password for {username}",
"data": {
"password": "[%key:common::config_flow::data::password%]"
}
} }
}, },
"error": { "error": {