Răsfoiți Sursa

chore (translations): move URLs out of translations

Seems to be a new HA policy that hassfest started generating errors
about. Misguided though it seems to me (URLs might lead to a
translated site with different URL per language, and this closes the
door on that by forcing code to pass the URL in through a
placeholder), it is easier to comply since the case here is a single
untranslated page.

Caused by home-assistant/core#154224
Jason Rumney 2 săptămâni în urmă
părinte
comite
9fbad56329

+ 6 - 0
custom_components/tuya_local/config_flow.py

@@ -43,6 +43,10 @@ from .helpers.device_config import get_config
 from .helpers.log import log_json
 
 _LOGGER = logging.getLogger(__name__)
+DEVICE_DETAILS_URL = (
+    "https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md"
+    "#finding-your-device-id-and-local-key"
+)
 
 
 class ConfigFlowHandler(ConfigFlow, domain=DOMAIN):
@@ -384,6 +388,7 @@ class ConfigFlowHandler(ConfigFlow, domain=DOMAIN):
                     vol.Optional(CONF_DEVICE_CID, **devcid_opts): str,
                 }
             ),
+            description_placeholders={"device_details_url": DEVICE_DETAILS_URL},
             errors=errors,
         )
 
@@ -527,6 +532,7 @@ class OptionsFlowHandler(OptionsFlow):
         return self.async_show_form(
             step_id="user",
             data_schema=vol.Schema(schema),
+            description_placeholders={"device_details_url": DEVICE_DETAILS_URL},
             errors=errors,
         )
 

+ 2 - 2
custom_components/tuya_local/translations/bg.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Конфигуриране на вашето Tuya Local устройство",
-                "description": "[Следвайте тези инструкции, за да откриете идентификатора на вашето устройство и локалния ключ](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Следвайте тези инструкции, за да откриете идентификатора на вашето устройство и локалния ключ]({device_details_url}).",
                 "data": {
                     "host": "IP адрес или име на хост",
                     "device_id": "Device ID (или Device ID шлюза, за устройства свързани чрез шлюз)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Конфигуриране на вашето Tuya Local устройство",
-                "description": "[Следвайте тези инструкции, за да откриете своя локален ключ.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Следвайте тези инструкции, за да откриете своя локален ключ.]({device_details_url})",
                 "data": {
                     "host": "IP адрес или име на хост",
                     "local_key": "Локален ключ",

+ 2 - 2
custom_components/tuya_local/translations/ca.json

@@ -33,7 +33,7 @@
             },
             "local": {
                 "title": "Configureu el vostre dispositiu Tuya Local",
-                "description": "[Seguiu aquestes instruccions per a trobar l'identificador del dispositiu i la clau local.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Seguiu aquestes instruccions per a trobar l'identificador del dispositiu i la clau local.]({device_details_url})",
                 "data": {
                     "host": "Adreça IP o nom d'amfitrió",
                     "device_id": "ID del dispositiu (o ID del dispositiu del centre per a dispositius connectats a través de la passarel·la)",
@@ -89,7 +89,7 @@
                     "protocol_version": "Versió del protocol (intenteu-ho automàticament si no es coneix)",
                     "poll_only": "Només enquestes (proveu això si el vostre dispositiu no funciona completament)"
                 },
-                "description": "[Seguiu aquestes instruccions per a trobar la vostra clau local.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)"
+                "description": "[Seguiu aquestes instruccions per a trobar la vostra clau local.]({device_details_url})"
             }
         },
         "abort": {

+ 2 - 2
custom_components/tuya_local/translations/cz.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Nastavte sve lokální zařízení",
-                "description": "[Postupujte podle tohoto návodu pro získaní identifikátoru zařízení (device_id) a lokálního klíče (local_key).](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Postupujte podle tohoto návodu pro získaní identifikátoru zařízení (device_id) a lokálního klíče (local_key).]({device_details_url})",
                 "data": {
                     "host": "IP adresa nebo název hostitele (hostname)",
                     "device_id": "identifikátor zařízení (device_id, nebo device_id brány pro zařízení připojená pomocí brány) ",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Nastavte sve lokální zařízení Tuya",
-                "description": "[Postupujte podle tohoto návodu pro získaní lokálního klíče (local_key) zařízení.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Postupujte podle tohoto návodu pro získaní lokálního klíče (local_key) zařízení.]({device_details_url})",
                 "data": {
                     "host": "IP adresa nebo název hostitele (hostname)",
                     "local_key": "lokální klíč (local_key)",

+ 2 - 2
custom_components/tuya_local/translations/de.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Konfigurieren Sie Ihr Tuya Local-Gerät",
-                "description": "[Folgen Sie diesen Anweisungen, um Ihre Geräte-ID und Ihren lokalen Schlüssel zu finden.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Folgen Sie diesen Anweisungen, um Ihre Geräte-ID und Ihren lokalen Schlüssel zu finden.]({device_details_url})",
                 "data": {
                     "host": "IP-Adresse oder Host-Name",
                     "device_id": "Geräte-ID (device_id, oder device_id des Gateways für Geräte, die über ein Gateway angeschlossen sind)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Konfigurieren Sie Ihr Tuya Local Gerät",
-                "description": "[Folgen Sie diesen Anweisungen, um Ihren lokalen Schlüssel zu finden.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Folgen Sie diesen Anweisungen, um Ihren lokalen Schlüssel zu finden.]({device_details_url})",
                 "data": {
                     "host": "IP-Adresse oder Host-Name",
                     "local_key": "Lokaler Schlüssel",

+ 2 - 2
custom_components/tuya_local/translations/el.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Ρυθμίστε τη συσκευή σας Tuya Local",
-                "description": "[Ακολουθήστε αυτές τις οδηγίες για να βρείτε το device id και το local key.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Ακολουθήστε αυτές τις οδηγίες για να βρείτε το device id και το local key.]({device_details_url})",
                 "data": {
                     "host": "Διεύθυνση IP ή όνομα",
                     "device_id": "Device ID (ή device_id της gateway για συσκευές συνδεδεμένες μέσω gateway)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Ρυθμίστε τη συσκευή σας Tuya Local",
-                "description": "[Ακολουθήστε αυτές τις οδηγίες για να βρείτε το local key.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Ακολουθήστε αυτές τις οδηγίες για να βρείτε το local key.]({device_details_url})",
                 "data": {
                     "host": "Διεύθυνση IP ή όνομα",
                     "local_key": "Local key",

+ 2 - 2
custom_components/tuya_local/translations/en.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Configure your Tuya Local device",
-                "description": "[Follow these instructions to find your device id and local key.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Follow these instructions to find your device id and local key.]({device_details_url})",
                 "data": {
                     "host": "IP address or hostname",
                     "device_id": "Device ID (or the hub's Device ID for devices connected via gateway)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Configure your Tuya Local device",
-                "description": "[Follow these instructions to find your local key.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Follow these instructions to find your local key.]({device_details_url})",
                 "data": {
                     "host": "IP address or hostname",
                     "local_key": "Local key",

+ 2 - 2
custom_components/tuya_local/translations/es.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Configura tu dispositivo Tuya Local",
-                "description": "[Siga estas instrucciones para encontrar la identificación de su dispositivo y la clave local.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Siga estas instrucciones para encontrar la identificación de su dispositivo y la clave local.]({device_details_url})",
                 "data": {
                     "host": "Dirección IP o nombre de host",
                     "device_id": "Identificación del dispositivo (device_id, o device_id de la puerta de enlace para dispositivos conectados a través de una puerta de enlace)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Configura tu dispositivo Tuya Local",
-                "description": "[Siga estas instrucciones para encontrar su clave local.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Siga estas instrucciones para encontrar su clave local.]({device_details_url})",
                 "data": {
                     "host": "Dirección IP o nombre de host",
                     "local_key": "Clave local (Local key)",

+ 2 - 2
custom_components/tuya_local/translations/fr.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Configurer votre appareil Tuya Local",
-                "description": "[Suivre ces instructions pour trouver le 'device id' et la 'local key'.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Suivre ces instructions pour trouver le 'device id' et la 'local key'.]({device_details_url})",
                 "data": {
                     "host": "Adresse IP ou Nom d'hote",
                     "device_id": "Device ID (ou device_id de la passerelle pour les appareils connectés via une passerelle)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Configurer votre appareil Tuya Local",
-                "description": "[Suivre ces instructions pour trouver le 'device id' et la 'local key'.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Suivre ces instructions pour trouver le 'device id' et la 'local key'.]({device_details_url})",
                 "data": {
                     "host": "Adresse IP ou Nom d'hote",
                     "local_key": "Local key",

+ 2 - 2
custom_components/tuya_local/translations/hu.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Állítsd be a helyi Tuya eszközöd",
-                "description": "[Kövesd ezeket az utasításokat, hogy megtaláld az eszköz azonosítóját (device_id) és a helyi kulcsot (local_key).](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Kövesd ezeket az utasításokat, hogy megtaláld az eszköz azonosítóját (device_id) és a helyi kulcsot (local_key).]({device_details_url})",
                 "data": {
                     "host": "IP cím vagy állomásnév",
                     "or device_id of gateway": "Vagy átjáró eszköz azonosítója (device_id átjárón keresztül használt eszközök esetén)",
@@ -84,7 +84,7 @@
         "step": {
             "user": {
                 "title": "Állítsd be a helyi Tuya eszközödet",
-                "description": "[Kövesd ezeket az utasításokat, hogy megtalált a helyi kulcsot (local_key).](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Kövesd ezeket az utasításokat, hogy megtalált a helyi kulcsot (local_key).]({device_details_url})",
                 "data": {
                     "host": "IP cím vagy állomásnév",
                     "local_key": "Helyi kulcs (local_key)",

+ 2 - 2
custom_components/tuya_local/translations/id.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Konfigurasikan perangkat Tuya Local Anda",
-                "description": "[Ikuti petunjuk ini untuk menemukan ID perangkat dan kunci lokal.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Ikuti petunjuk ini untuk menemukan ID perangkat dan kunci lokal.]({device_details_url})",
                 "data": {
                     "host": "Alamat IP atau nama hos",
                     "device_id": "ID Perangkat (device_id, atau device_id dari gateway untuk perangkat yang tersambung via gateway)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Konfigurasikan perangkat Tuya Local Anda",
-                "description": "[Ikuti petunjuk ini untuk menemukan ID perangkat dan kunci lokal.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Ikuti petunjuk ini untuk menemukan ID perangkat dan kunci lokal.]({device_details_url})",
                 "data": {
                     "host": "Alamat IP atau nama hos",
                     "local_key": "Kunci lokal (local_key)",

+ 2 - 2
custom_components/tuya_local/translations/it.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Configura il tuo dispositivo Tuya Local",
-                "description": "[Segui queste istruzioni per trovare 'device id' e 'local key'.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Segui queste istruzioni per trovare 'device id' e 'local key'.]({device_details_url})",
                 "data": {
                     "host": "Indirizzo IP o hostname",
                     "or device_id of gateway": "oppure ID dispositivo del gateway",
@@ -84,7 +84,7 @@
         "step": {
             "user": {
                 "title": "Configura il tuo dispositivo Tuya Local",
-                "description": "[Segui queste istruzioni per trovare 'device id' e 'local key'.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Segui queste istruzioni per trovare 'device id' e 'local key'.]({device_details_url})",
                 "data": {
                     "host": "Indirizzo IP o hostname",
                     "local_key": "Local key",

+ 2 - 2
custom_components/tuya_local/translations/ja.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Tuya Localのデバイスを設定する",
-                "description": "[これらの手順に従ってデバイスIDとローカルキーを見つけてください。](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[これらの手順に従ってデバイスIDとローカルキーを見つけてください。]({device_details_url})",
                 "data": {
                     "host": "IPアドレスまたはホスト名",
                     "device_id": "デバイスID(デバイスがハブ経由で接続されている場合はハブのdevice_id)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Tuya Localのデバイスを設定する",
-                "description": "[これらの手順に従ってデバイスIDとローカルキーを見つけてください。](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[これらの手順に従ってデバイスIDとローカルキーを見つけてください。]({device_details_url})",
                 "data": {
                     "host": "IPアドレスまたはホスト名",
                     "local_key": "ローカルキー",

+ 2 - 2
custom_components/tuya_local/translations/no-NB.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Konfigurer din lokale Tuya enhet",
-                "description": "[Følg instruksjonene her for å finne enhets-id og den lokale nøkkelen.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Følg instruksjonene her for å finne enhets-id og den lokale nøkkelen.]({device_details_url})",
                 "data": {
                     "host": "IP addresse eller vertsnavn",
                     "or device_id of gateway for devices connected via gateway": "",
@@ -84,7 +84,7 @@
         "step": {
             "user": {
                 "title": "Konfigurer din lokale Tuya enhet",
-                "description": "[Følg instruksjonene her for å finne enhets-id og den lokale nøkkelen.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Følg instruksjonene her for å finne enhets-id og den lokale nøkkelen.]({device_details_url})",
                 "data": {
                     "host": "IP addresse eller vertsnavn",
                     "local_key": "Lokal nøkkel",

+ 2 - 2
custom_components/tuya_local/translations/pl.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Skonfiguruj swoje urządzenie Tuya Local",
-                "description": "[Postępuj zgodnie z instrukcjami by znaleźć swoje Device ID oraz Local key.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Postępuj zgodnie z instrukcjami by znaleźć swoje Device ID oraz Local key.]({device_details_url})",
                 "data": {
                     "host": "Adres IP lub nazwa hosta",
                     "device_id": "Device ID (lub device_id bramki dla urządzeń podłączonych poprzez bramkę)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Skonfiguruj swoje urządzenie Tuya Local",
-                "description": "[Postępuj zgodnie z instrukcjami by znaleźć swój Local key.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Postępuj zgodnie z instrukcjami by znaleźć swój Local key.]({device_details_url})",
                 "data": {
                     "host": "Adres IP lub nazwa hosta",
                     "local_key": "Local key",

+ 2 - 2
custom_components/tuya_local/translations/pt-BR.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Configure seu dispositivo Tuya Local",
-                "description": "[Siga estas instruções para encontrar o ID do seu dispositivo e a chave local.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Siga estas instruções para encontrar o ID do seu dispositivo e a chave local.]({device_details_url})",
                 "data": {
                     "host": "Endereço IP ou nome do host",
                     "device_id": "Device ID (ou device_id do gateway para dispositivos conectados via gateway)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Configure seu dispositivo Tuya Local",
-                "description": "[Siga estas instruções para encontrar o ID do seu dispositivo e a chave local.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Siga estas instruções para encontrar o ID do seu dispositivo e a chave local.]({device_details_url})",
                 "data": {
                     "host": "Endereço IP ou nome do host",
                     "local_key": "Chave Local",

+ 2 - 2
custom_components/tuya_local/translations/pt-PT.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Configure seu dispositivo Tuya Local",
-                "description": "[Siga estas instruções para encontrar o ID do seu dispositivo e a chave local.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Siga estas instruções para encontrar o ID do seu dispositivo e a chave local.]({device_details_url})",
                 "data": {
                     "host": "Endereço IP ou nome do host",
                     "device_id": "Device ID (ou device_id do gateway para dispositivos conectados via gateway)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Configure seu dispositivo Tuya Local",
-                "description": "[Siga estas instruções para encontrar o ID do seu dispositivo e a chave local.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Siga estas instruções para encontrar o ID do seu dispositivo e a chave local.]({device_details_url})",
                 "data": {
                     "host": "Endereço IP ou nome do host",
                     "local_key": "Chave Local",

+ 2 - 2
custom_components/tuya_local/translations/ro.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Configurează dispozitivul Tuya Local",
-                "description": "[Urmați aceste instrucțiuni pentru a găsi device id și local key.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Urmați aceste instrucțiuni pentru a găsi device id și local key.]({device_details_url})",
                 "data": {
                     "host": "Adresă IP sau hostname",
                     "device_id": "Device ID (sau Device ID al hub-ului pentru dispozitive conectate prin gateway)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Configurează dispozitivul Tuya Local",
-                "description": "[Urmați aceste instrucțiuni pentru a găsi cheia locală.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Urmați aceste instrucțiuni pentru a găsi cheia locală.]({device_details_url})",
                 "data": {
                     "host": "Adresă IP sau hostname",
                     "local_key": "Cheie locală",

+ 2 - 2
custom_components/tuya_local/translations/ru.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Настройка устройства Tuya Local",
-                "description": "[Следуйте этим инструкциям, чтобы найти идентификатор устройства и локальный ключ.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Следуйте этим инструкциям, чтобы найти идентификатор устройства и локальный ключ.]({device_details_url})",
                 "data": {
                     "host": "IP-адрес или имя хоста",
                     "device_id": "Идентификатор устройства (device_id, или device_id шлюза для устройств, подключенных через шлюз)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Настройка устройства Tuya Local",
-                "description": "[Следуйте этим инструкциям, чтобы найти идентификатор устройства и локальный ключ.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Следуйте этим инструкциям, чтобы найти идентификатор устройства и локальный ключ.]({device_details_url})",
                 "data": {
                     "host": "IP-адрес или имя хоста",
                     "local_key": "Локальный ключ",

+ 2 - 2
custom_components/tuya_local/translations/sv.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Konfigurera din Tuya Local-enhet",
-                "description": "[Följ dessa instruktioner för att hitta ditt enhets-ID och lokala nyckel.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Följ dessa instruktioner för att hitta ditt enhets-ID och lokala nyckel.]({device_details_url})",
                 "data": {
                     "host": "IP-adress eller värdnamn",
                     "device_id": "Enhets-ID (eller hubbens enhets-ID för enheter anslutna via gateway)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Konfigurera din Tuya Local-enhet",
-                "description": "[Följ dessa instruktioner för att hitta din lokala nyckel.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Följ dessa instruktioner för att hitta din lokala nyckel.]({device_details_url})",
                 "data": {
                     "host": "IP-adress eller värdnamn",
                     "local_key": "Lokal nyckel",

+ 2 - 2
custom_components/tuya_local/translations/uk.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "Налаштуйте свій пристрій Tuya Local",
-                "description": "[Дотримуйтеся цих інструкцій, щоб знайти ідентифікатор пристрою та локальний ключ.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Дотримуйтеся цих інструкцій, щоб знайти ідентифікатор пристрою та локальний ключ.]({device_details_url})",
                 "data": {
                     "host": "IP-адреса або ім'я хоста",
                     "device_id": "Ідентифікатор пристрою (device_id, або device_id шлюзу для пристроїв, підключених через шлюз)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "Налаштуйте свій пристрій Tuya Local",
-                "description": "[Дотримуйтеся цих інструкцій, щоб знайти локальний ключ.](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[Дотримуйтеся цих інструкцій, щоб знайти локальний ключ.]({device_details_url})",
                 "data": {
                     "host": "IP-адреса або ім'я хоста",
                     "local_key": "Локальний ключ (local_key)",

+ 2 - 2
custom_components/tuya_local/translations/ur.json

@@ -35,7 +35,7 @@
             },
             "local": {
                 "title": "اپنے ٹویا لوکل ڈیوائس کو ترتیب دیں۔",
-                "description": "[اپنی ڈیوائس آئی ڈی اور لوکل کلید تلاش کرنے کے لیے ان ہدایات پر عمل کریں۔](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[اپنی ڈیوائس آئی ڈی اور لوکل کلید تلاش کرنے کے لیے ان ہدایات پر عمل کریں۔]({device_details_url})",
                 "data": {
                     "host": "IP ایڈریس یا میزبان نام",
                     "or device_id of gateway for devices connected through gateway": "",
@@ -86,7 +86,7 @@
         "step": {
             "user": {
                 "title": "اپنے ٹویا لوکل ڈیوائس کو ترتیب دیں",
-                "description": "[اپنی مقامی کلید تلاش کرنے کے لیے ان ہدایات پر عمل کریں۔](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[اپنی مقامی کلید تلاش کرنے کے لیے ان ہدایات پر عمل کریں۔]({device_details_url})",
                 "data": {
                     "host": "IP پتہ یا میزبان نام",
                     "local_key": "مقامی کلید",

+ 2 - 2
custom_components/tuya_local/translations/zh-Hans.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "配置您的Tuya Local设备",
-                "description": "[按照这些说明找到您的设备ID和 Local key](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[按照这些说明找到您的设备ID和 Local key]({device_details_url})",
                 "data": {
                     "host": "IP地址或主机名",
                     "device_id": "设备ID (或者通过网关连接的设备的设备ID)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "配置您的Tuya Local设备",
-                "description": "[按照这些说明找到您的 Local key](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[按照这些说明找到您的 Local key]({device_details_url})",
                 "data": {
                     "host": "IP地址或主机名",
                     "local_key": "Local key",

+ 2 - 2
custom_components/tuya_local/translations/zh-Hant.json

@@ -34,7 +34,7 @@
             },
             "local": {
                 "title": "配置您的Tuya Local設備",
-                "description": "[請按照這些說明找到您的裝置ID和 Local key](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[請按照這些說明找到您的裝置ID和 Local key]({devide_details_url})",
                 "data": {
                     "host": "IP位址或主機名",
                     "device_id": "設備ID(或device_id網關,對於透過網關連接的設備)",
@@ -83,7 +83,7 @@
         "step": {
             "user": {
                 "title": "配置您的Tuya Local設備",
-                "description": "[請按照這些說明找到您的 Local key](https://github.com/make-all/tuya-local/blob/main/DEVICE_DETAILS.md#finding-your-device-id-and-local-key)",
+                "description": "[請按照這些說明找到您的 Local key]({devide_details_url})",
                 "data": {
                     "host": "IP位址或主機名",
                     "local_key": "Local key",