mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Avoid mutating title_placeholders in devolo_home_network (#127188)
This commit is contained in:
parent
57905efcd3
commit
a3513b24ec
@ -120,9 +120,11 @@ class DevoloHomeNetworkConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
"""Handle reauthentication."""
|
"""Handle reauthentication."""
|
||||||
if entry := self.hass.config_entries.async_get_entry(self.context["entry_id"]):
|
if entry := self.hass.config_entries.async_get_entry(self.context["entry_id"]):
|
||||||
self.host = entry_data[CONF_IP_ADDRESS]
|
self.host = entry_data[CONF_IP_ADDRESS]
|
||||||
self.context["title_placeholders"][PRODUCT] = (
|
placeholders = {
|
||||||
entry.runtime_data.device.product
|
**self.context["title_placeholders"],
|
||||||
)
|
PRODUCT: entry.runtime_data.device.product,
|
||||||
|
}
|
||||||
|
self.context["title_placeholders"] = placeholders
|
||||||
return await self.async_step_reauth_confirm()
|
return await self.async_step_reauth_confirm()
|
||||||
|
|
||||||
async def async_step_reauth_confirm(
|
async def async_step_reauth_confirm(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user