Add flow_title for HomeWizard Energy (#65047)

This commit is contained in:
Duco Sebel 2022-01-27 14:30:31 +01:00 committed by GitHub
parent f4ed28ab09
commit 4f3ce27560
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -127,6 +127,10 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
self._set_confirm_only()
self.context["title_placeholders"] = {
"name": f"{self.config[CONF_PRODUCT_NAME]} ({self.config[CONF_SERIAL]})"
}
return self.async_show_form(
step_id="discovery_confirm",
description_placeholders={

View File

@ -15,7 +15,7 @@
},
"abort": {
"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",
"device_not_supported": "This device is not supported",
"unknown_error": "[%key:common::config_flow::error::unknown%]"