mirror of
https://github.com/home-assistant/core.git
synced 2026-04-20 08:29:39 +02:00
Lametric remove translatable URL (#154991)
This commit is contained in:
committed by
Franck Nijhof
parent
619cb91839
commit
27cc3c838a
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user