From 1144e33e685caf45a8ad26b803ef0ba7f3c8ab4a Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Thu, 23 Nov 2023 10:23:15 +0100 Subject: [PATCH] Add re-auth config flow strings for Sure Petcare (#104357) --- homeassistant/components/surepetcare/config_flow.py | 1 + homeassistant/components/surepetcare/strings.json | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/homeassistant/components/surepetcare/config_flow.py b/homeassistant/components/surepetcare/config_flow.py index 7c4509259ad..38bed2e20a9 100644 --- a/homeassistant/components/surepetcare/config_flow.py +++ b/homeassistant/components/surepetcare/config_flow.py @@ -118,6 +118,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): return self.async_show_form( step_id="reauth_confirm", + description_placeholders={"username": self._username}, data_schema=vol.Schema({vol.Required(CONF_PASSWORD): str}), errors=errors, ) diff --git a/homeassistant/components/surepetcare/strings.json b/homeassistant/components/surepetcare/strings.json index 2d297cc829e..c3b7864f36a 100644 --- a/homeassistant/components/surepetcare/strings.json +++ b/homeassistant/components/surepetcare/strings.json @@ -6,6 +6,13 @@ "username": "[%key:common::config_flow::data::username%]", "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": {