Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions homeassistant/components/uptime_kuma/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
}
)
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(
Expand Down Expand Up @@ -100,6 +101,7 @@ async def async_step_user(
data_schema=STEP_USER_DATA_SCHEMA, suggested_values=user_input
),
errors=errors,
description_placeholders=PLACEHOLDER,
)

async def async_step_reauth(
Expand Down Expand Up @@ -170,6 +172,7 @@ async def async_step_reconfigure(
suggested_values=user_input or entry.data,
),
errors=errors,
description_placeholders=PLACEHOLDER,
)

async def async_step_hassio(
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/uptime_kuma/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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**"
}
Expand Down
Loading