mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Add configuration_url to Plugwise discovery (#66047)
This commit is contained in:
parent
379945860b
commit
895aee3fb2
@ -97,12 +97,17 @@ class PlugwiseConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
_version = _properties.get("version", "n/a")
|
_version = _properties.get("version", "n/a")
|
||||||
_name = f"{ZEROCONF_MAP.get(_product, _product)} v{_version}"
|
_name = f"{ZEROCONF_MAP.get(_product, _product)} v{_version}"
|
||||||
|
|
||||||
self.context["title_placeholders"] = {
|
self.context.update(
|
||||||
|
{
|
||||||
|
"title_placeholders": {
|
||||||
CONF_HOST: discovery_info.host,
|
CONF_HOST: discovery_info.host,
|
||||||
CONF_NAME: _name,
|
CONF_NAME: _name,
|
||||||
CONF_PORT: discovery_info.port,
|
CONF_PORT: discovery_info.port,
|
||||||
CONF_USERNAME: self._username,
|
CONF_USERNAME: self._username,
|
||||||
|
},
|
||||||
|
"configuration_url": f"http://{discovery_info.host}:{discovery_info.port}",
|
||||||
}
|
}
|
||||||
|
)
|
||||||
return await self.async_step_user()
|
return await self.async_step_user()
|
||||||
|
|
||||||
async def async_step_user(
|
async def async_step_user(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user