From a3513b24ecd8362b5796ee0da8e87d77fc59be42 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 1 Oct 2024 12:48:41 +0200 Subject: [PATCH] Avoid mutating title_placeholders in devolo_home_network (#127188) --- .../components/devolo_home_network/config_flow.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/devolo_home_network/config_flow.py b/homeassistant/components/devolo_home_network/config_flow.py index af214bbee5f..52d49a6b500 100644 --- a/homeassistant/components/devolo_home_network/config_flow.py +++ b/homeassistant/components/devolo_home_network/config_flow.py @@ -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(