mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Avoid mutating title_placeholders in reolink (#127209)
This commit is contained in:
parent
4251ee1229
commit
1efe418e05
@ -116,10 +116,12 @@ class ReolinkFlowHandler(ConfigFlow, domain=DOMAIN):
|
||||
self._host = entry_data[CONF_HOST]
|
||||
self._username = entry_data[CONF_USERNAME]
|
||||
self._password = entry_data[CONF_PASSWORD]
|
||||
self.context["title_placeholders"]["ip_address"] = entry_data[CONF_HOST]
|
||||
self.context["title_placeholders"]["hostname"] = self.context[
|
||||
"title_placeholders"
|
||||
]["name"]
|
||||
placeholders = {
|
||||
**self.context["title_placeholders"],
|
||||
"ip_address": entry_data[CONF_HOST],
|
||||
"hostname": self.context["title_placeholders"]["name"],
|
||||
}
|
||||
self.context["title_placeholders"] = placeholders
|
||||
return await self.async_step_reauth_confirm()
|
||||
|
||||
async def async_step_reauth_confirm(
|
||||
|
Loading…
x
Reference in New Issue
Block a user