Skip to content

Commit 762fd6d

Browse files
authored
Move URL out of Aemet strings.json (home-assistant#154225)
1 parent 4c6500e commit 762fd6d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

homeassistant/components/aemet/config_flow.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,14 @@ async def async_step_user(
7171
}
7272
)
7373

74-
return self.async_show_form(step_id="user", data_schema=schema, errors=errors)
74+
return self.async_show_form(
75+
step_id="user",
76+
data_schema=schema,
77+
errors=errors,
78+
description_placeholders={
79+
"api_key_url": "https://opendata.aemet.es/centrodedescargas/altaUsuario"
80+
},
81+
)
7582

7683
@staticmethod
7784
@callback

homeassistant/components/aemet/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"longitude": "[%key:common::config_flow::data::longitude%]",
1515
"name": "Name of the integration"
1616
},
17-
"description": "To generate API key go to https://opendata.aemet.es/centrodedescargas/altaUsuario"
17+
"description": "To generate API key go to {api_key_url}"
1818
}
1919
}
2020
},

0 commit comments

Comments
 (0)