Skip to content

Commit 27cc3c8

Browse files
erwindounafrenck
authored andcommitted
Lametric remove translatable URL (home-assistant#154991)
1 parent 619cb91 commit 27cc3c8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

homeassistant/components/lametric/config_flow.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848

4949
from .const import DOMAIN, LOGGER
5050

51+
DEVICES_URL = "https://developer.lametric.com/user/devices"
52+
5153

5254
class LaMetricFlowHandler(AbstractOAuth2FlowHandler, domain=DOMAIN):
5355
"""Handle a LaMetric config flow."""
@@ -164,6 +166,9 @@ async def async_step_manual_entry(
164166
return self.async_show_form(
165167
step_id="manual_entry",
166168
data_schema=vol.Schema(schema),
169+
description_placeholders={
170+
"devices_url": DEVICES_URL,
171+
},
167172
errors=errors,
168173
)
169174

homeassistant/components/lametric/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"data_description": {
2626
"host": "The IP address or hostname of your LaMetric TIME on your network.",
27-
"api_key": "You can find this API key in the [devices page in your LaMetric developer account](https://developer.lametric.com/user/devices)."
27+
"api_key": "You can find this API key in the [devices page in your LaMetric developer account]({devices_url})."
2828
}
2929
},
3030
"cloud_select_device": {

0 commit comments

Comments
 (0)