From f49dfbd4598f77d92c04cdcc4d39c1bf9c4b559a Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Sat, 18 Oct 2025 16:13:53 +0100 Subject: [PATCH] Move URL out of TheThingsNetwork strings.json (#154760) --- homeassistant/components/thethingsnetwork/config_flow.py | 9 ++++++++- homeassistant/components/thethingsnetwork/strings.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/thethingsnetwork/config_flow.py b/homeassistant/components/thethingsnetwork/config_flow.py index 412c5da4ef9..3d1952068ea 100644 --- a/homeassistant/components/thethingsnetwork/config_flow.py +++ b/homeassistant/components/thethingsnetwork/config_flow.py @@ -82,7 +82,14 @@ class TTNFlowHandler(ConfigFlow, domain=DOMAIN): ), user_input, ) - return self.async_show_form(step_id="user", data_schema=schema, errors=errors) + return self.async_show_form( + step_id="user", + data_schema=schema, + errors=errors, + description_placeholders={ + "instructions_url": "https://www.thethingsindustries.com/docs/integrations/adding-applications/" + }, + ) async def async_step_reauth( self, entry_data: Mapping[str, Any] diff --git a/homeassistant/components/thethingsnetwork/strings.json b/homeassistant/components/thethingsnetwork/strings.json index 8b3eb7b53c4..4caf4188165 100644 --- a/homeassistant/components/thethingsnetwork/strings.json +++ b/homeassistant/components/thethingsnetwork/strings.json @@ -3,7 +3,7 @@ "step": { "user": { "title": "Connect to The Things Network v3", - "description": "Enter the API hostname, application ID and API key to use with Home Assistant.\n\n[Read the instructions](https://www.thethingsindustries.com/docs/integrations/adding-applications/) on how to register your application and create an API key.", + "description": "Enter the API hostname, application ID and API key to use with Home Assistant.\n\n[Read the instructions]({instructions_url}) on how to register your application and create an API key.", "data": { "host": "[%key:common::config_flow::data::host%]", "app_id": "Application ID",