Move URL out of TheThingsNetwork strings.json (#154760)

This commit is contained in:
Andrew Jackson
2025-10-18 16:13:53 +01:00
committed by Franck Nijhof
parent 3ed70bb751
commit f49dfbd459
2 changed files with 9 additions and 2 deletions

View File

@@ -82,7 +82,14 @@ class TTNFlowHandler(ConfigFlow, domain=DOMAIN):
), ),
user_input, 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( async def async_step_reauth(
self, entry_data: Mapping[str, Any] self, entry_data: Mapping[str, Any]

View File

@@ -3,7 +3,7 @@
"step": { "step": {
"user": { "user": {
"title": "Connect to The Things Network v3", "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": { "data": {
"host": "[%key:common::config_flow::data::host%]", "host": "[%key:common::config_flow::data::host%]",
"app_id": "Application ID", "app_id": "Application ID",