Add description placeholders in Uptime Kuma config flow (#154252)

Signed-off-by: tr4nt0r <4445816+tr4nt0r@users.noreply.github.com>
This commit is contained in:
Manu
2025-10-12 00:06:29 +02:00
committed by GitHub
parent 6e28e3aed1
commit c59d295bf2
2 changed files with 4 additions and 1 deletions
@@ -42,6 +42,7 @@ STEP_USER_DATA_SCHEMA = vol.Schema(
}
)
STEP_REAUTH_DATA_SCHEMA = vol.Schema({vol.Optional(CONF_API_KEY, default=""): str})
PLACEHOLDER = {"example_url": "https://uptime.example.com:3001"}
async def validate_connection(
@@ -100,6 +101,7 @@ class UptimeKumaConfigFlow(ConfigFlow, domain=DOMAIN):
data_schema=STEP_USER_DATA_SCHEMA, suggested_values=user_input
),
errors=errors,
description_placeholders=PLACEHOLDER,
)
async def async_step_reauth(
@@ -170,6 +172,7 @@ class UptimeKumaConfigFlow(ConfigFlow, domain=DOMAIN):
suggested_values=user_input or entry.data,
),
errors=errors,
description_placeholders=PLACEHOLDER,
)
async def async_step_hassio(
@@ -9,7 +9,7 @@
"api_key": "[%key:common::config_flow::data::api_key%]"
},
"data_description": {
"url": "Enter the full URL of your Uptime Kuma instance. Be sure to include the protocol (`http` or `https`), the hostname or IP address, the port number (if it is a non-default port), and any path prefix if applicable. Example: `https://uptime.example.com`",
"url": "Enter the full URL of your Uptime Kuma instance. Be sure to include the protocol (`http` or `https`), the hostname or IP address, the port number (if it is a non-default port), and any path prefix if applicable. Example: `{example_url}`",
"verify_ssl": "Enable SSL certificate verification for secure connections. Disable only if connecting to an Uptime Kuma instance using a self-signed certificate or via IP address",
"api_key": "Enter an API key. To create a new API key navigate to **Settings → API Keys** and select **Add API Key**"
}