mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Ensure soundtouch config flow title_placeholders items are [str, str] (#127207)
This commit is contained in:
parent
028d1c6148
commit
41932b4501
@ -65,7 +65,9 @@ class SoundtouchConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
except RequestException:
|
||||
return self.async_abort(reason="cannot_connect")
|
||||
|
||||
self.context["title_placeholders"] = {"name": self.name}
|
||||
if self.name:
|
||||
# If we have a name, use it as flow title
|
||||
self.context["title_placeholders"] = {"name": self.name}
|
||||
return await self.async_step_zeroconf_confirm()
|
||||
|
||||
async def async_step_zeroconf_confirm(
|
||||
|
Loading…
x
Reference in New Issue
Block a user