diff --git a/homeassistant/components/lametric/config_flow.py b/homeassistant/components/lametric/config_flow.py index 23b0062fc82..8a7bd098d75 100644 --- a/homeassistant/components/lametric/config_flow.py +++ b/homeassistant/components/lametric/config_flow.py @@ -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, ) diff --git a/homeassistant/components/lametric/strings.json b/homeassistant/components/lametric/strings.json index f3fa1e81112..acf69239830 100644 --- a/homeassistant/components/lametric/strings.json +++ b/homeassistant/components/lametric/strings.json @@ -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": {