From e6a853badf4eca8d5ec0a36bbc476feb47026b90 Mon Sep 17 00:00:00 2001 From: maciej-or Date: Sun, 15 Dec 2024 18:34:05 +0100 Subject: [PATCH] config dialog labels changed --- custom_components/hikvision_next/config_flow.py | 2 +- custom_components/hikvision_next/translations/en.json | 4 ++-- custom_components/hikvision_next/translations/fr.json | 4 ++-- custom_components/hikvision_next/translations/it.json | 4 ++-- custom_components/hikvision_next/translations/pl.json | 4 ++-- custom_components/hikvision_next/translations/pt-BR.json | 4 ++-- custom_components/hikvision_next/translations/pt.json | 4 ++-- custom_components/hikvision_next/translations/ru.json | 4 ++-- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/custom_components/hikvision_next/config_flow.py b/custom_components/hikvision_next/config_flow.py index 81d6ad4..48d5107 100755 --- a/custom_components/hikvision_next/config_flow.py +++ b/custom_components/hikvision_next/config_flow.py @@ -41,11 +41,11 @@ async def get_schema(self, user_input: dict[str, Any]): schema = vol.Schema( { vol.Required(CONF_HOST, default="http://"): str, + vol.Optional(CONF_VERIFY_SSL, default=True): bool, vol.Required(CONF_USERNAME): str, vol.Required(CONF_PASSWORD): str, vol.Required(CONF_SET_ALARM_SERVER, default=True): bool, vol.Required(CONF_ALARM_SERVER_HOST): str, - vol.Optional(CONF_VERIFY_SSL, default=True): bool, vol.Optional(RTSP_PORT_FORCED): vol.And(int, vol.Range(min=1)), } ) diff --git a/custom_components/hikvision_next/translations/en.json b/custom_components/hikvision_next/translations/en.json index be73a34..4fa2bc7 100644 --- a/custom_components/hikvision_next/translations/en.json +++ b/custom_components/hikvision_next/translations/en.json @@ -12,8 +12,8 @@ "host": "URL", "password": "Password", "username": "Username", - "verify_ssl": "Verify Hikvision device SSL certificate (uncheck for self-signed certificate)", - "rtsp_port_forced": "RTSP port forwarded on router (Optional)", + "verify_ssl": "Verify SSL certificate (uncheck for self-signed certificate)", + "rtsp_port_forced": "Force RTSP port (Optional)", "set_alarm_server": "Set notifications host using following address:", "alarm_server": "Home Assistant address accessible by Hikvison device" } diff --git a/custom_components/hikvision_next/translations/fr.json b/custom_components/hikvision_next/translations/fr.json index fdbfe78..7a80818 100644 --- a/custom_components/hikvision_next/translations/fr.json +++ b/custom_components/hikvision_next/translations/fr.json @@ -10,8 +10,8 @@ "host": "URL", "password": "Mot de passe", "username": "Nom d'utilisateur", - "verify_ssl": "Vérifiez le certificat SSL de l'appareil Hikvision (décochez la case pour un certificat self-signed)", - "rtsp_port_forced": "Port RTSP transféré sur le routeur (facultatif)", + "verify_ssl": "Vérifiez le certificat SSL (décochez la case pour un certificat self-signed)", + "rtsp_port_forced": "Forcer le port RTSP (facultatif)", "set_alarm_server": "Définir le serveur d'alarme à l'aide l'adresse suivante :", "alarm_server": "Adresse d'Home Assistant accessible par l'appareil Hikvision" } diff --git a/custom_components/hikvision_next/translations/it.json b/custom_components/hikvision_next/translations/it.json index e9a87f1..2d48c42 100644 --- a/custom_components/hikvision_next/translations/it.json +++ b/custom_components/hikvision_next/translations/it.json @@ -10,8 +10,8 @@ "host": "URL", "password": "Password", "username": "Username", - "verify_ssl": "Verificare il certificato SSL del dispositivo Hikvision (deselezionare per il certificato self-signed)", - "rtsp_port_forced": "Porta RTSP inoltrata sul router (facoltativo)", + "verify_ssl": "Verificare il certificato SSL (deselezionare per il certificato self-signed)", + "rtsp_port_forced": "Forza la porta RTSP (facoltativo)", "set_alarm_server": "Indirizzo del server di ricezione degli allarmi:", "alarm_server": "indirizzo di Home Assistant accessibile dal dispositivo Hikvison" } diff --git a/custom_components/hikvision_next/translations/pl.json b/custom_components/hikvision_next/translations/pl.json index adfa4d7..da86cf6 100644 --- a/custom_components/hikvision_next/translations/pl.json +++ b/custom_components/hikvision_next/translations/pl.json @@ -12,8 +12,8 @@ "host": "URL", "password": "Hasło", "username": "Nazwa użytkownika", - "rtsp_port_forced": "Port RTSP przekierowany na routerze (opcjonalnie)", - "verify_ssl": "Zweryfikuj certyfikat SSL urządzenia Hikvision (odznacz dla certyfikatu self-signed)", + "rtsp_port_forced": "Wymuś port RTSP (opcjonalnie)", + "verify_ssl": "Zweryfikuj certyfikat SSL (odznacz dla certyfikatu self-signed)", "set_alarm_server": "Ustaw host powiadomień używając następującego adresu:", "alarm_server": "Adres Home Assistant dostępny dla urządzenia Hikvision" } diff --git a/custom_components/hikvision_next/translations/pt-BR.json b/custom_components/hikvision_next/translations/pt-BR.json index bf99d0e..b403225 100644 --- a/custom_components/hikvision_next/translations/pt-BR.json +++ b/custom_components/hikvision_next/translations/pt-BR.json @@ -10,8 +10,8 @@ "host": "URL", "password": "Senha", "username": "Nome de usuário", - "rtsp_port_forced": "Porta RTSP encaminhada no roteador (opcional)", - "verify_ssl": "Verifique o certificado SSL do dispositivo Hikvision (desmarque o certificado self-signed)", + "rtsp_port_forced": "Forçar porta RTSP (opcional)", + "verify_ssl": "Verifique o certificado SSL (desmarque o certificado self-signed)", "set_alarm_server": "Defina o servidor de alarme usando o seguinte endereço:", "alarm_server": "Endereço do Home Assistant acessível pelo dispositivo Hikvison" } diff --git a/custom_components/hikvision_next/translations/pt.json b/custom_components/hikvision_next/translations/pt.json index 326e761..10fe3ec 100644 --- a/custom_components/hikvision_next/translations/pt.json +++ b/custom_components/hikvision_next/translations/pt.json @@ -10,8 +10,8 @@ "host": "Link", "password": "Password", "username": "Utilizador", - "rtsp_port_forced": "Porta RTSP encaminhada no router (opcional)", - "verify_ssl": "Verifique o certificado SSL do dispositivo Hikvision (desmarque o certificado self-signed)", + "rtsp_port_forced": "Forçar porta RTSP (opcional)", + "verify_ssl": "Verifique o certificado SSL (desmarque o certificado self-signed)", "set_alarm_server": "Sefinir um alarme usando o seguinte endereço:", "alarm_server": "Home Assistant endreço é acessivel pelo Hikvison device?" } diff --git a/custom_components/hikvision_next/translations/ru.json b/custom_components/hikvision_next/translations/ru.json index 6739b5e..d0a16b8 100644 --- a/custom_components/hikvision_next/translations/ru.json +++ b/custom_components/hikvision_next/translations/ru.json @@ -10,8 +10,8 @@ "host": "URL", "password": "Пароль", "username": "Имя пользователя", - "rtsp_port_forced": "Порт RTSP перенаправлен на маршрутизатор (необязательно)", - "verify_ssl": "Проверьте SSL-сертификат устройства Hikvision (снимите флажок для self-signed сертификата)", + "rtsp_port_forced": "Принудительный RTSP-порт (необязательно)", + "verify_ssl": "Проверьте SSL-сертификат (снимите флажок для self-signed сертификата)", "set_alarm_server": "Установить сервер тревоги используя следующий адрес:", "alarm_server": "Home Assistant адрес, доступный Hikvison устройству" }