mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
Fix title upon discovery for lamarzocco (#131207)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
e12db0c88e
commit
786b779a68
@ -125,6 +125,12 @@ class LmConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
self._config = data
|
||||
return await self.async_step_machine_selection()
|
||||
|
||||
placeholders: dict[str, str] | None = None
|
||||
if self._discovered:
|
||||
self.context["title_placeholders"] = placeholders = {
|
||||
CONF_NAME: self._discovered[CONF_MACHINE]
|
||||
}
|
||||
|
||||
return self.async_show_form(
|
||||
step_id="user",
|
||||
data_schema=vol.Schema(
|
||||
@ -134,6 +140,7 @@ class LmConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
}
|
||||
),
|
||||
errors=errors,
|
||||
description_placeholders=placeholders,
|
||||
)
|
||||
|
||||
async def async_step_machine_selection(
|
||||
|
@ -1,6 +1,5 @@
|
||||
{
|
||||
"config": {
|
||||
"flow_title": "La Marzocco Espresso {host}",
|
||||
"abort": {
|
||||
"reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]",
|
||||
"reconfigure_successful": "[%key:common::config_flow::abort::reconfigure_successful%]",
|
||||
|
Loading…
x
Reference in New Issue
Block a user