Add Fritz visit device link to discovered devices (#69186)

This commit is contained in:
Simone Chemelli 2022-04-03 11:59:47 +02:00 committed by GitHub
parent f8333feb51
commit beb5184720
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,9 +148,13 @@ class FritzBoxToolsFlowHandler(ConfigFlow, domain=DOMAIN):
self.hass.config_entries.async_update_entry(entry, unique_id=uuid)
return self.async_abort(reason="already_configured")
self.context["title_placeholders"] = {
"name": self._name.replace("FRITZ!Box ", "")
}
self.context.update(
{
"title_placeholders": {"name": self._name.replace("FRITZ!Box ", "")},
"configuration_url": f"http://{self._host}",
}
)
return await self.async_step_confirm()
async def async_step_confirm(