Skip to content

Commit 1df8b10

Browse files
andrew-codechimpfrenck
authored andcommitted
Move url out of rachio strings.json (home-assistant#154781)
1 parent 32cd436 commit 1df8b10

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

homeassistant/components/rachio/config_flow.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ async def async_step_user(
9191
errors["base"] = "unknown"
9292

9393
return self.async_show_form(
94-
step_id="user", data_schema=DATA_SCHEMA, errors=errors
94+
step_id="user",
95+
data_schema=DATA_SCHEMA,
96+
errors=errors,
97+
description_placeholders={
98+
"api_key_url": "https://app.rach.io/",
99+
},
95100
)
96101

97102
async def async_step_homekit(

homeassistant/components/rachio/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 your Rachio device",
6-
"description": "You will need the API key from https://app.rach.io/. Go to Settings, then select 'GET API KEY'.",
6+
"description": "You will need the API key from {api_key_url}. Go to Settings, then select 'GET API KEY'.",
77
"data": {
88
"api_key": "[%key:common::config_flow::data::api_key%]"
99
}

0 commit comments

Comments
 (0)