Avoid mutating title_placeholders in devolo_home_network (#127188)

This commit is contained in:
Erik Montnemery 2024-10-01 12:48:41 +02:00 committed by GitHub
parent 57905efcd3
commit a3513b24ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(