1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-27 02:36:00 +01:00

Lametric remove translatable URL (#154991)

This commit is contained in:
Erwin Douna
2025-10-22 15:01:21 +02:00
committed by GitHub
parent 7c6bbb97ea
commit fa86148df0
2 changed files with 6 additions and 1 deletions
@@ -48,6 +48,8 @@ from homeassistant.util.network import is_link_local
from .const import DOMAIN, LOGGER
DEVICES_URL = "https://developer.lametric.com/user/devices"
class LaMetricFlowHandler(AbstractOAuth2FlowHandler, domain=DOMAIN):
"""Handle a LaMetric config flow."""
@@ -164,6 +166,9 @@ class LaMetricFlowHandler(AbstractOAuth2FlowHandler, domain=DOMAIN):
return self.async_show_form(
step_id="manual_entry",
data_schema=vol.Schema(schema),
description_placeholders={
"devices_url": DEVICES_URL,
},
errors=errors,
)
@@ -24,7 +24,7 @@
},
"data_description": {
"host": "The IP address or hostname of your LaMetric TIME on your network.",
"api_key": "You can find this API key in the [devices page in your LaMetric developer account](https://developer.lametric.com/user/devices)."
"api_key": "You can find this API key in the [devices page in your LaMetric developer account]({devices_url})."
}
},
"cloud_select_device": {