Reolink fix missing title_placeholders (#95827)

This commit is contained in:
starkillerOG 2023-07-04 13:40:22 +02:00 committed by GitHub
parent 081e4e03a7
commit b3e1a3f624
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,6 +79,10 @@ class ReolinkFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
self._username = entry_data[CONF_USERNAME]
self._password = entry_data[CONF_PASSWORD]
self._reauth = True
self.context["title_placeholders"]["ip_address"] = entry_data[CONF_HOST]
self.context["title_placeholders"]["hostname"] = self.context[
"title_placeholders"
]["name"]
return await self.async_step_reauth_confirm()
async def async_step_reauth_confirm(