diff --git a/homeassistant/config_entries.py b/homeassistant/config_entries.py index d5259ef1fc55..e11ad3e823ee 100644 --- a/homeassistant/config_entries.py +++ b/homeassistant/config_entries.py @@ -828,6 +828,7 @@ async def _async_init_reauth( issue_domain=self.domain, severity=ir.IssueSeverity.ERROR, translation_key="config_entry_reauth", + translation_placeholders={"name": self.title}, ) @callback diff --git a/homeassistant/strings.json b/homeassistant/strings.json index 6e6499e0d193..cfe1061bce61 100644 --- a/homeassistant/strings.json +++ b/homeassistant/strings.json @@ -68,7 +68,7 @@ "config_flow": { "title": { "oauth2_pick_implementation": "Pick authentication method", - "reauth": "Reauthenticate integration", + "reauth": "Authentication expired for {name}", "via_hassio_addon": "{name} via Home Assistant add-on" }, "description": { diff --git a/tests/components/kitchen_sink/test_init.py b/tests/components/kitchen_sink/test_init.py index c65d53478d20..b3f303fcfe1a 100644 --- a/tests/components/kitchen_sink/test_init.py +++ b/tests/components/kitchen_sink/test_init.py @@ -205,7 +205,7 @@ async def test_issues_created( "learn_more_url": None, "severity": "error", "translation_key": "config_entry_reauth", - "translation_placeholders": None, + "translation_placeholders": {"name": "Kitchen Sink"}, "ignored": False, }, ] @@ -322,7 +322,7 @@ async def test_issues_created( "learn_more_url": None, "severity": "error", "translation_key": "config_entry_reauth", - "translation_placeholders": None, + "translation_placeholders": {"name": "Kitchen Sink"}, "ignored": False, }, ] diff --git a/tests/test_config_entries.py b/tests/test_config_entries.py index 609f80e1a60d..3941afbe1824 100644 --- a/tests/test_config_entries.py +++ b/tests/test_config_entries.py @@ -963,7 +963,7 @@ async def test_reauth_issue(hass: HomeAssistant) -> None: learn_more_url=None, severity=ir.IssueSeverity.ERROR, translation_key="config_entry_reauth", - translation_placeholders=None, + translation_placeholders={"name": "test_title"}, ) result = await hass.config_entries.flow.async_configure(issue.data["flow_id"], {})