Expose UniFi controller configuration url from discovered entry (#64514)
This commit is contained in:
parent
2b413b86a3
commit
86d32b3440
2 changed files with 12 additions and 0 deletions
|
@ -238,6 +238,9 @@ class UnifiFlowHandler(config_entries.ConfigFlow, domain=UNIFI_DOMAIN):
|
|||
|
||||
if (port := MODEL_PORTS.get(model_description)) is not None:
|
||||
self.config[CONF_PORT] = port
|
||||
self.context[
|
||||
"configuration_url"
|
||||
] = f"https://{self.config[CONF_HOST]}:{port}"
|
||||
|
||||
return await self.async_step_user()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue