mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Ensure octoprint config flow title_placeholders items are [str, str] (#127202)
This commit is contained in:
@@ -203,7 +203,7 @@ class OctoPrintConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
url = URL(discovery_info.upnp["presentationURL"])
|
url = URL(discovery_info.upnp["presentationURL"])
|
||||||
self.context.update(
|
self.context.update(
|
||||||
{
|
{
|
||||||
"title_placeholders": {CONF_HOST: url.host},
|
"title_placeholders": {CONF_HOST: url.host or "-"},
|
||||||
"configuration_url": discovery_info.upnp["presentationURL"],
|
"configuration_url": discovery_info.upnp["presentationURL"],
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user