Skip to content

Commit f49dfbd

Browse files
andrew-codechimpfrenck
authored andcommitted
Move URL out of TheThingsNetwork strings.json (home-assistant#154760)
1 parent 3ed70bb commit f49dfbd

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

homeassistant/components/thethingsnetwork/config_flow.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,14 @@ async def async_step_user(
8282
),
8383
user_input,
8484
)
85-
return self.async_show_form(step_id="user", data_schema=schema, errors=errors)
85+
return self.async_show_form(
86+
step_id="user",
87+
data_schema=schema,
88+
errors=errors,
89+
description_placeholders={
90+
"instructions_url": "https://www.thethingsindustries.com/docs/integrations/adding-applications/"
91+
},
92+
)
8693

8794
async def async_step_reauth(
8895
self, entry_data: Mapping[str, Any]

homeassistant/components/thethingsnetwork/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"step": {
44
"user": {
55
"title": "Connect to The Things Network v3",
6-
"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.",
6+
"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.",
77
"data": {
88
"host": "[%key:common::config_flow::data::host%]",
99
"app_id": "Application ID",

0 commit comments

Comments
 (0)