mirror of
https://github.com/home-assistant/core.git
synced 2026-04-20 16:39:02 +02:00
Moved non-translatable elements out of strings.json for nuki (#154682)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> Co-authored-by: Norbert Rittel <norbert@rittel.de>
This commit is contained in:
@@ -110,6 +110,8 @@ async def _create_webhook(
|
||||
translation_placeholders={
|
||||
"base_url": hass_url,
|
||||
"network_link": "https://my.home-assistant.io/redirect/network/",
|
||||
"sample_ip": "192.168.1.10",
|
||||
"sample_url": "http://192.168.1.10:8123",
|
||||
},
|
||||
)
|
||||
else:
|
||||
|
||||
@@ -177,4 +177,5 @@ class NukiConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
step_id="user",
|
||||
data_schema=self.add_suggested_values_to_schema(data_schema, user_input),
|
||||
errors=errors,
|
||||
description_placeholders={"sample_ip": "192.168.1.25"},
|
||||
)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"encrypt_token": "Use an encrypted token for authentication."
|
||||
},
|
||||
"data_description": {
|
||||
"host": "The hostname or IP address of your Nuki bridge. For example: 192.168.1.25."
|
||||
"host": "The hostname or IP address of your Nuki bridge. For example: {sample_ip}."
|
||||
}
|
||||
},
|
||||
"reauth_confirm": {
|
||||
@@ -34,7 +34,7 @@
|
||||
"issues": {
|
||||
"https_webhook": {
|
||||
"title": "Nuki webhook URL uses HTTPS (SSL)",
|
||||
"description": "The Nuki bridge can not push events to an HTTPS address (SSL), please configure a (local) HTTP address under \"Home Assistant URL\" in the [network settings]({network_link}). The current (local) address is: `{base_url}`, a valid address could, for example, be `http://192.168.1.10:8123` where `192.168.1.10` is the IP of the Home Assistant device"
|
||||
"description": "The Nuki bridge cannot push events to an HTTPS address (SSL), please configure a (local) HTTP address under \"Home Assistant URL\" in the [network settings]({network_link}). The current (local) address is: `{base_url}`, a valid address could, for example, be `{sample_url}` where `{sample_ip}` is the IP of the Home Assistant device"
|
||||
}
|
||||
},
|
||||
"entity": {
|
||||
|
||||
Reference in New Issue
Block a user