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._host = entry_data[CONF_HOST]
|
||||||
self._username = entry_data[CONF_USERNAME]
|
self._username = entry_data[CONF_USERNAME]
|
||||||
self._password = entry_data[CONF_PASSWORD]
|
self._password = entry_data[CONF_PASSWORD]
|
||||||
self.context["title_placeholders"]["ip_address"] = entry_data[CONF_HOST]
|
placeholders = {
|
||||||
self.context["title_placeholders"]["hostname"] = self.context[
|
**self.context["title_placeholders"],
|
||||||
"title_placeholders"
|
"ip_address": entry_data[CONF_HOST],
|
||||||
]["name"]
|
"hostname": self.context["title_placeholders"]["name"],
|
||||||
|
}
|
||||||
|
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