1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Move translatable URLs out of strings.json for huawei lte (#154368)

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
Anuj Soni
2025-10-14 18:41:47 +05:30
committed by Franck Nijhof
parent 97e338c760
commit 7f1989f9f2
2 changed files with 14 additions and 2 deletions

View File

@@ -112,6 +112,9 @@ class HuaweiLteConfigFlow(ConfigFlow, domain=DOMAIN):
}
),
errors=errors or {},
description_placeholders={
"sample_ip": "http://192.168.X.1",
},
)
async def _async_show_reauth_form(
@@ -132,6 +135,9 @@ class HuaweiLteConfigFlow(ConfigFlow, domain=DOMAIN):
}
),
errors=errors or {},
description_placeholders={
"sample_ip": "http://192.168.X.1",
},
)
async def _connect(
@@ -406,4 +412,10 @@ class HuaweiLteOptionsFlow(OptionsFlow):
): bool,
}
)
return self.async_show_form(step_id="init", data_schema=data_schema)
return self.async_show_form(
step_id="init",
data_schema=data_schema,
description_placeholders={
"sample_ip": "http://192.168.X.1",
},
)

View File

@@ -41,7 +41,7 @@
},
"data_description": {
"password": "Password for accessing the router's API. Typically, the same as the one used for the router's web interface.",
"url": "Base URL to the API of the router. Typically, something like `http://192.168.X.1`. This is the beginning of the location shown in a browser when accessing the router's web interface.",
"url": "Base URL to the API of the router. Typically, something like `{sample_ip}`. This is the beginning of the location shown in a browser when accessing the router's web interface.",
"username": "Username for accessing the router's API. Typically, the same as the one used for the router's web interface. Usually, either `admin`, or left empty (recommended if that works).",
"verify_ssl": "Whether to verify the SSL certificate of the router when accessing it. Applicable only if the router is accessed via HTTPS."
},