Skip to content

Commit 56d237a

Browse files
shaiuclaude
authored andcommitted
Move URLs out of SABnzbd strings.json (home-assistant#154333)
Co-authored-by: Claude <[email protected]>
1 parent e5d1902 commit 56d237a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

homeassistant/components/sabnzbd/config_flow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,8 @@ async def async_step_user(
9090
else user_input,
9191
),
9292
errors=errors,
93+
description_placeholders={
94+
"sabnzbd_full_url_local": "http://localhost:8080",
95+
"sabnzbd_full_url_addon": "http://a02368d7-sabnzbd:8080",
96+
},
9397
)

homeassistant/components/sabnzbd/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "[%key:common::config_flow::data::url%]"
88
},
99
"data_description": {
10-
"url": "The full URL, including port, of the SABnzbd server. Example: `http://localhost:8080` or `http://a02368d7-sabnzbd:8080`, if you are using the add-on.",
10+
"url": "The full URL, including port, of the SABnzbd server. Example: `{sabnzbd_full_url_local}` or `{sabnzbd_full_url_addon}`, if you are using the add-on.",
1111
"api_key": "The API key of the SABnzbd server. This can be found in the SABnzbd web interface under Config cog (top right) > General > Security."
1212
}
1313
}

0 commit comments

Comments
 (0)