Skip to content

Commit 634f718

Browse files
tr4nt0rfrenck
authored andcommitted
Add description placeholders to pyLoad config flow (home-assistant#154254)
1 parent 49bfb01 commit 634f718

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

homeassistant/components/pyload/config_flow.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
),
7373
}
7474
)
75+
PLACEHOLDER = {"example_url": "https://example.com:8000/path"}
7576

7677

7778
async def validate_input(hass: HomeAssistant, user_input: dict[str, Any]) -> None:
@@ -134,6 +135,7 @@ async def async_step_user(
134135
STEP_USER_DATA_SCHEMA, user_input
135136
),
136137
errors=errors,
138+
description_placeholders=PLACEHOLDER,
137139
)
138140

139141
async def async_step_reauth(
@@ -211,7 +213,10 @@ async def async_step_reconfigure(
211213
STEP_USER_DATA_SCHEMA,
212214
suggested_values,
213215
),
214-
description_placeholders={CONF_NAME: reconfig_entry.data[CONF_USERNAME]},
216+
description_placeholders={
217+
CONF_NAME: reconfig_entry.data[CONF_USERNAME],
218+
**PLACEHOLDER,
219+
},
215220
errors=errors,
216221
)
217222

homeassistant/components/pyload/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"verify_ssl": "[%key:common::config_flow::data::verify_ssl%]"
1010
},
1111
"data_description": {
12-
"url": "Specify the full URL of your pyLoad web interface, including the protocol (HTTP or HTTPS), hostname or IP address, port (pyLoad uses 8000 by default), and any path prefix if applicable.\nExample: `https://example.com:8000/path`",
12+
"url": "Specify the full URL of your pyLoad web interface, including the protocol (HTTP or HTTPS), hostname or IP address, port (pyLoad uses 8000 by default), and any path prefix if applicable.\nExample: `{example_url}`",
1313
"username": "The username used to access the pyLoad instance.",
1414
"password": "The password associated with the pyLoad account.",
1515
"verify_ssl": "If checked, the SSL certificate will be validated to ensure a secure connection."

0 commit comments

Comments
 (0)