mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add flow_title
for HomeWizard Energy (#65047)
This commit is contained in:
parent
f4ed28ab09
commit
4f3ce27560
@ -127,6 +127,10 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
|
|
||||||
self._set_confirm_only()
|
self._set_confirm_only()
|
||||||
|
|
||||||
|
self.context["title_placeholders"] = {
|
||||||
|
"name": f"{self.config[CONF_PRODUCT_NAME]} ({self.config[CONF_SERIAL]})"
|
||||||
|
}
|
||||||
|
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
step_id="discovery_confirm",
|
step_id="discovery_confirm",
|
||||||
description_placeholders={
|
description_placeholders={
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
},
|
},
|
||||||
"abort": {
|
"abort": {
|
||||||
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]",
|
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]",
|
||||||
"invalid_discovery_parameters": "unsupported_api_version",
|
"invalid_discovery_parameters": "Detected unsupported API version",
|
||||||
"api_not_enabled": "The API is not enabled. Enable API in the HomeWizard Energy App under settings",
|
"api_not_enabled": "The API is not enabled. Enable API in the HomeWizard Energy App under settings",
|
||||||
"device_not_supported": "This device is not supported",
|
"device_not_supported": "This device is not supported",
|
||||||
"unknown_error": "[%key:common::config_flow::error::unknown%]"
|
"unknown_error": "[%key:common::config_flow::error::unknown%]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user