Ensure octoprint config flow title_placeholders items are [str, str] (#127202)

pull/127219/head^2
Erik Montnemery 2024-10-01 14:42:54 +02:00 committed by GitHub
parent bb70a0feb2
commit 3460f460d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ class OctoPrintConfigFlow(ConfigFlow, domain=DOMAIN):
url = URL(discovery_info.upnp["presentationURL"])
self.context.update(
{
"title_placeholders": {CONF_HOST: url.host},
"title_placeholders": {CONF_HOST: url.host or "-"},
"configuration_url": discovery_info.upnp["presentationURL"],
}
)