From af7155df7ab0d223cd5bf5bb8b0b030d294bccd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hjelseth=20H=C3=B8yer?= Date: Sat, 25 Nov 2023 11:41:20 +0100 Subject: [PATCH] Fix link in Tibber configuration menu (#104322) Co-authored-by: Franck Nijhof --- homeassistant/components/tibber/config_flow.py | 3 +++ homeassistant/components/tibber/strings.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/tibber/config_flow.py b/homeassistant/components/tibber/config_flow.py index fbd2345fb80..3fb426d6b11 100644 --- a/homeassistant/components/tibber/config_flow.py +++ b/homeassistant/components/tibber/config_flow.py @@ -19,6 +19,7 @@ DATA_SCHEMA = vol.Schema({vol.Required(CONF_ACCESS_TOKEN): str}) ERR_TIMEOUT = "timeout" ERR_CLIENT = "cannot_connect" ERR_TOKEN = "invalid_access_token" +TOKEN_URL = "https://developer.tibber.com/settings/access-token" class TibberConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): @@ -60,6 +61,7 @@ class TibberConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): return self.async_show_form( step_id="user", data_schema=DATA_SCHEMA, + description_placeholders={"url": TOKEN_URL}, errors=errors, ) @@ -75,5 +77,6 @@ class TibberConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): return self.async_show_form( step_id="user", data_schema=DATA_SCHEMA, + description_placeholders={"url": TOKEN_URL}, errors={}, ) diff --git a/homeassistant/components/tibber/strings.json b/homeassistant/components/tibber/strings.json index 8306f25f587..c7cef9f4657 100644 --- a/homeassistant/components/tibber/strings.json +++ b/homeassistant/components/tibber/strings.json @@ -13,7 +13,7 @@ "data": { "access_token": "[%key:common::config_flow::data::access_token%]" }, - "description": "Enter your access token from https://developer.tibber.com/settings/accesstoken" + "description": "Enter your access token from {url}" } } }