Skip to content

Commit 11b9f79

Browse files
sonianuj287joostlekepenetNoRi2909
authored
Moved non-translatable elements out of strings.json for nuki (home-assistant#154682)
Co-authored-by: Joost Lekkerkerker <[email protected]> Co-authored-by: epenet <[email protected]> Co-authored-by: Norbert Rittel <[email protected]>
1 parent 3ddb520 commit 11b9f79

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

homeassistant/components/nuki/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ async def handle_webhook(
110110
translation_placeholders={
111111
"base_url": hass_url,
112112
"network_link": "https://my.home-assistant.io/redirect/network/",
113+
"sample_ip": "192.168.1.10",
114+
"sample_url": "http://192.168.1.10:8123",
113115
},
114116
)
115117
else:

homeassistant/components/nuki/config_flow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,5 @@ async def async_step_validate(
177177
step_id="user",
178178
data_schema=self.add_suggested_values_to_schema(data_schema, user_input),
179179
errors=errors,
180+
description_placeholders={"sample_ip": "192.168.1.25"},
180181
)

homeassistant/components/nuki/strings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"encrypt_token": "Use an encrypted token for authentication."
1010
},
1111
"data_description": {
12-
"host": "The hostname or IP address of your Nuki bridge. For example: 192.168.1.25."
12+
"host": "The hostname or IP address of your Nuki bridge. For example: {sample_ip}."
1313
}
1414
},
1515
"reauth_confirm": {
@@ -34,7 +34,7 @@
3434
"issues": {
3535
"https_webhook": {
3636
"title": "Nuki webhook URL uses HTTPS (SSL)",
37-
"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"
37+
"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"
3838
}
3939
},
4040
"entity": {

0 commit comments

Comments
 (0)