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

This commit is contained in:
Erik Montnemery
2024-10-01 14:42:54 +02:00
committed by GitHub
parent bb70a0feb2
commit 3460f460d1

View File

@@ -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"],
} }
) )