Skip to content

Commit c315370

Browse files
authored
Move translatable URLs out of strings.json for tautulli (home-assistant#154681)
1 parent d13067a commit c315370

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

homeassistant/components/tautulli/config_flow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ async def async_step_user(
4747
step_id="user",
4848
data_schema=vol.Schema(data_schema),
4949
errors=errors or {},
50+
description_placeholders={
51+
"sample_url": "http://192.168.0.10:8181",
52+
"sample_port": "8181",
53+
},
5054
)
5155

5256
async def async_step_reauth(

homeassistant/components/tautulli/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"config": {
33
"step": {
44
"user": {
5-
"description": "To find your API key, open the Tautulli webpage and navigate to Settings and then to Web interface. The API key will be at the bottom of that page.\n\nExample of the URL: ```http://192.168.0.10:8181``` with 8181 being the default port.",
5+
"description": "To find your API key, open the Tautulli webpage and navigate to Settings and then to Web interface. The API key will be at the bottom of that page.\n\nExample of the URL: ```{sample_url}``` with {sample_port} being the default port.",
66
"data": {
77
"api_key": "[%key:common::config_flow::data::api_key%]",
88
"url": "[%key:common::config_flow::data::url%]",

0 commit comments

Comments
 (0)