From 877b796a984a36bb5cfae4b0f2146925f178f5f8 Mon Sep 17 00:00:00 2001 From: Robert Resch Date: Mon, 16 Dec 2024 14:44:42 +0100 Subject: [PATCH] Add common data_description --- homeassistant/components/ecovacs/config_flow.py | 3 +++ homeassistant/components/ecovacs/strings.json | 4 +++- homeassistant/strings.json | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/ecovacs/config_flow.py b/homeassistant/components/ecovacs/config_flow.py index 2637dbbddf8..097e4bed864 100644 --- a/homeassistant/components/ecovacs/config_flow.py +++ b/homeassistant/components/ecovacs/config_flow.py @@ -214,6 +214,9 @@ class EcovacsConfigFlow(ConfigFlow, domain=DOMAIN): data_schema=self.add_suggested_values_to_schema( data_schema=vol.Schema(schema), suggested_values=user_input ), + description_placeholders={ + "account_name": "Ecovacs", + }, errors=errors, last_step=True, ) diff --git a/homeassistant/components/ecovacs/strings.json b/homeassistant/components/ecovacs/strings.json index 78140ca2b25..fc2486b00af 100644 --- a/homeassistant/components/ecovacs/strings.json +++ b/homeassistant/components/ecovacs/strings.json @@ -22,9 +22,11 @@ "verify_mqtt_certificate": "Verify MQTT SSL certificate" }, "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_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." } }, diff --git a/homeassistant/strings.json b/homeassistant/strings.json index fca55353aa0..b479cb0ec3b 100644 --- a/homeassistant/strings.json +++ b/homeassistant/strings.json @@ -108,6 +108,10 @@ "path": "Path", "language": "Language" }, + "data_description": { + "username": "The username of your {account_name} account.", + "password": "The password of your {account_name} account." + }, "create_entry": { "authenticated": "Successfully authenticated" },