Move URLs out of SABnzbd strings.json (#154333)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Shai Ungar
2025-10-14 15:47:50 +03:00
committed by GitHub
parent a92e73ff17
commit 7ddfcd350b
2 changed files with 5 additions and 1 deletions

View File

@@ -90,4 +90,8 @@ class SABnzbdConfigFlow(ConfigFlow, domain=DOMAIN):
else user_input,
),
errors=errors,
description_placeholders={
"sabnzbd_full_url_local": "http://localhost:8080",
"sabnzbd_full_url_addon": "http://a02368d7-sabnzbd:8080",
},
)

View File

@@ -7,7 +7,7 @@
"url": "[%key:common::config_flow::data::url%]"
},
"data_description": {
"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.",
"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.",
"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."
}
}