Skip to content

Commit 185d00c

Browse files
authored
Fix Withings reauth title (#126838)
1 parent e72ec07 commit 185d00c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

homeassistant/components/withings/config_flow.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from homeassistant.components.webhook import async_generate_id
1212
from homeassistant.config_entries import ConfigEntry, ConfigFlowResult
13-
from homeassistant.const import CONF_TOKEN, CONF_WEBHOOK_ID
13+
from homeassistant.const import CONF_NAME, CONF_TOKEN, CONF_WEBHOOK_ID
1414
from homeassistant.helpers import config_entry_oauth2_flow
1515

1616
from .const import DEFAULT_TITLE, DOMAIN
@@ -52,7 +52,11 @@ async def async_step_reauth_confirm(
5252
) -> ConfigFlowResult:
5353
"""Confirm reauth dialog."""
5454
if user_input is None:
55-
return self.async_show_form(step_id="reauth_confirm")
55+
assert self.reauth_entry
56+
return self.async_show_form(
57+
step_id="reauth_confirm",
58+
description_placeholders={CONF_NAME: self.reauth_entry.title},
59+
)
5660
return await self.async_step_user()
5761

5862
async def async_oauth_create_entry(self, data: dict[str, Any]) -> ConfigFlowResult:

0 commit comments

Comments
 (0)