Add Shelly visit device link to discovered devices (#69185)
parent
69461f115d
commit
f8333feb51
|
@ -198,7 +198,12 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
self._abort_if_unique_id_configured({CONF_HOST: host})
|
||||
self.host = host
|
||||
|
||||
self.context["title_placeholders"] = {"name": discovery_info.name.split(".")[0]}
|
||||
self.context.update(
|
||||
{
|
||||
"title_placeholders": {"name": discovery_info.name.split(".")[0]},
|
||||
"configuration_url": f"http://{discovery_info.host}",
|
||||
}
|
||||
)
|
||||
|
||||
if get_info_auth(self.info):
|
||||
return await self.async_step_credentials()
|
||||
|
|
Loading…
Reference in New Issue