Lametric remove translatable URL (#154991)

This commit is contained in:
Erwin Douna
2025-10-22 15:01:21 +02:00
committed by Franck Nijhof
parent 619cb91839
commit 27cc3c838a
2 changed files with 6 additions and 1 deletions

View File

@@ -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,
)

View File

@@ -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": {