Add common data_description

This commit is contained in:
Robert Resch 2024-12-16 14:44:42 +01:00
parent a8f8681844
commit 877b796a98
No known key found for this signature in database
GPG Key ID: 9D9D9DCB43120143
3 changed files with 10 additions and 1 deletions

View File

@ -214,6 +214,9 @@ class EcovacsConfigFlow(ConfigFlow, domain=DOMAIN):
data_schema=self.add_suggested_values_to_schema( data_schema=self.add_suggested_values_to_schema(
data_schema=vol.Schema(schema), suggested_values=user_input data_schema=vol.Schema(schema), suggested_values=user_input
), ),
description_placeholders={
"account_name": "Ecovacs",
},
errors=errors, errors=errors,
last_step=True, last_step=True,
) )

View File

@ -22,9 +22,11 @@
"verify_mqtt_certificate": "Verify MQTT SSL certificate" "verify_mqtt_certificate": "Verify MQTT SSL certificate"
}, },
"data_description": { "data_description": {
"country": "Select the country where your Ecovacs account is registered.", "country": "The country of your {account_name} account.",
"override_rest_url": "Enter the REST URL of your self-hosted instance including the scheme (http/https).", "override_rest_url": "Enter the REST URL of your self-hosted instance including the scheme (http/https).",
"override_mqtt_url": "Enter the MQTT URL of your self-hosted instance including the scheme (mqtt/mqtts).", "override_mqtt_url": "Enter the MQTT URL of your self-hosted instance including the scheme (mqtt/mqtts).",
"password": "[%key:common::config_flow::data_description::password%]",
"username": "[%key:common::config_flow::data_description::username%]",
"verify_mqtt_certificate": "Should SSL certificartes be verified? Uncheck this checkbox only if you are using a self-signed certificate." "verify_mqtt_certificate": "Should SSL certificartes be verified? Uncheck this checkbox only if you are using a self-signed certificate."
} }
}, },

View File

@ -108,6 +108,10 @@
"path": "Path", "path": "Path",
"language": "Language" "language": "Language"
}, },
"data_description": {
"username": "The username of your {account_name} account.",
"password": "The password of your {account_name} account."
},
"create_entry": { "create_entry": {
"authenticated": "Successfully authenticated" "authenticated": "Successfully authenticated"
}, },