From 2e1463b9e9515a0a9413794a1efe7f66269a731e Mon Sep 17 00:00:00 2001 From: G Johansson Date: Wed, 1 Jan 2025 03:09:49 +0100 Subject: [PATCH] Add placeholder url to Sensibo api description (#134342) --- homeassistant/components/sensibo/config_flow.py | 9 +++++++++ homeassistant/components/sensibo/strings.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/sensibo/config_flow.py b/homeassistant/components/sensibo/config_flow.py index b8b1029f141..9acb1849223 100644 --- a/homeassistant/components/sensibo/config_flow.py +++ b/homeassistant/components/sensibo/config_flow.py @@ -77,6 +77,9 @@ class SensiboConfigFlow(ConfigFlow, domain=DOMAIN): step_id="reauth_confirm", data_schema=DATA_SCHEMA, errors=errors, + description_placeholders={ + "url": "https://www.home-assistant.io/integrations/sensibo/#prerequisites" + }, ) async def async_step_reconfigure( @@ -103,6 +106,9 @@ class SensiboConfigFlow(ConfigFlow, domain=DOMAIN): step_id="reconfigure", data_schema=DATA_SCHEMA, errors=errors, + description_placeholders={ + "url": "https://www.home-assistant.io/integrations/sensibo/#prerequisites" + }, ) async def async_step_user( @@ -128,4 +134,7 @@ class SensiboConfigFlow(ConfigFlow, domain=DOMAIN): step_id="user", data_schema=DATA_SCHEMA, errors=errors, + description_placeholders={ + "url": "https://www.home-assistant.io/integrations/sensibo/#prerequisites" + }, ) diff --git a/homeassistant/components/sensibo/strings.json b/homeassistant/components/sensibo/strings.json index 302e34bb5aa..9e049a6a4dd 100644 --- a/homeassistant/components/sensibo/strings.json +++ b/homeassistant/components/sensibo/strings.json @@ -18,7 +18,7 @@ "api_key": "[%key:common::config_flow::data::api_key%]" }, "data_description": { - "api_key": "Follow the documentation to get your api key" + "api_key": "Follow the [documentation]({url}) to get your api key" } }, "reauth_confirm": {