Avoid mutating title_placeholders in devolo_home_network (#127188)
This commit is contained in:
parent
57905efcd3
commit
a3513b24ec
1 changed files with 5 additions and 3 deletions
|
@ -120,9 +120,11 @@ class DevoloHomeNetworkConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||
"""Handle reauthentication."""
|
||||
if entry := self.hass.config_entries.async_get_entry(self.context["entry_id"]):
|
||||
self.host = entry_data[CONF_IP_ADDRESS]
|
||||
self.context["title_placeholders"][PRODUCT] = (
|
||||
entry.runtime_data.device.product
|
||||
)
|
||||
placeholders = {
|
||||
**self.context["title_placeholders"],
|
||||
PRODUCT: entry.runtime_data.device.product,
|
||||
}
|
||||
self.context["title_placeholders"] = placeholders
|
||||
return await self.async_step_reauth_confirm()
|
||||
|
||||
async def async_step_reauth_confirm(
|
||||
|
|
Loading…
Add table
Reference in a new issue