Skip to content

Commit

Permalink
Fix description placeholder in brunt reauth
Browse files Browse the repository at this point in the history
  • Loading branch information
rappenze committed Oct 21, 2024
1 parent a0665dc commit 7747c5c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions homeassistant/components/brunt/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import voluptuous as vol

from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
from homeassistant.const import CONF_NAME, CONF_PASSWORD, CONF_USERNAME

from .const import DOMAIN

Expand Down Expand Up @@ -92,7 +92,10 @@ async def async_step_reauth_confirm(
return self.async_show_form(
step_id="reauth_confirm",
data_schema=REAUTH_SCHEMA,
description_placeholders={"username": username},
description_placeholders={
"username": username,
CONF_NAME: reauth_entry.title,
},
)
user_input[CONF_USERNAME] = username
errors = await validate_input(user_input)
Expand All @@ -101,7 +104,10 @@ async def async_step_reauth_confirm(
step_id="reauth_confirm",
data_schema=REAUTH_SCHEMA,
errors=errors,
description_placeholders={"username": username},
description_placeholders={
"username": username,
CONF_NAME: reauth_entry.title,
},
)

return self.async_update_reload_and_abort(reauth_entry, data=user_input)

0 comments on commit 7747c5c

Please sign in to comment.