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:
Anuj Soni
2025-10-24 14:10:30 +05:30
committed by GitHub
parent 3ddb520693
commit 11b9f7915b
3 changed files with 5 additions and 2 deletions

View File

@@ -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:

View File

@@ -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"},
)

View File

@@ -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": {