From 3d8addfe803bcc2d66fb44dbb3503fcfde4fe5da Mon Sep 17 00:00:00 2001 From: Aronne Brivio Date: Tue, 12 Nov 2024 23:24:30 +0100 Subject: [PATCH] chore: update components via HACS --- custom_components/alexa_media/.translations/ru.json | 6 +++--- .../alexa_media/.translations/zh-Hans.json | 12 ++++++------ custom_components/alexa_media/__init__.py | 5 +++-- custom_components/alexa_media/const.py | 2 +- custom_components/alexa_media/manifest.json | 2 +- custom_components/alexa_media/translations/ru.json | 6 +++--- .../alexa_media/translations/zh-Hans.json | 12 ++++++------ 7 files changed, 23 insertions(+), 22 deletions(-) diff --git a/custom_components/alexa_media/.translations/ru.json b/custom_components/alexa_media/.translations/ru.json index 68678eb2..b252617e 100644 --- a/custom_components/alexa_media/.translations/ru.json +++ b/custom_components/alexa_media/.translations/ru.json @@ -34,7 +34,7 @@ "debug": "Расширенные возможности отладки", "email": "Адрес электронной почты", "exclude_devices": "Исключенные устройства (через запятую)", - "extended_entity_discovery": "Include devices connected via Echo", + "extended_entity_discovery": "Включить устройства, подключенные через Echo", "hass_url": "URL-адрес для доступа к Home Assistant", "include_devices": "Включенные устройства (разделенное запятыми)", "otp_secret": "Встроенный ключ приложения 2FA (автоматически генерирует коды 2FA). Это не шесть цифр.", @@ -62,8 +62,8 @@ "queue_delay": "Секунды ожидания, чтобы выполнить команды вместе", "scan_interval": "Секунды между сканированиями" }, - "description": "Required *", - "title": "Alexa Media Player - Reconfiguration" + "description": "Необходимый *", + "title": "Alexa Media Player - Перенастройка" } } }, diff --git a/custom_components/alexa_media/.translations/zh-Hans.json b/custom_components/alexa_media/.translations/zh-Hans.json index f316e723..18c6ea10 100644 --- a/custom_components/alexa_media/.translations/zh-Hans.json +++ b/custom_components/alexa_media/.translations/zh-Hans.json @@ -37,7 +37,7 @@ "extended_entity_discovery": "包括通过 Echo 连接的设备", "hass_url": "Url to access Home Assistant", "include_devices": "Included device (comma separated)", - "otp_secret": "内置 2FA App Key(自动生成 2FA 代码)。这不是六位数长。", + "otp_secret": "内置 2FA 应用程序密钥(自动生成 2FA 代码)。该密钥长度不为六位数字。", "password": "密码", "queue_delay": "Seconds to wait to queue commands together", "scan_interval": "Seconds between scans", @@ -62,8 +62,8 @@ "queue_delay": "Seconds to wait to queue commands together", "scan_interval": "Seconds between scans" }, - "description": "Required *", - "title": "Alexa Media Player - Reconfiguration" + "description": "必需的 *", + "title": "Alexa 媒体播放器 - 重新配置" } } }, @@ -72,7 +72,7 @@ "description": "清除每个 Alexa 帐户的 Alexa Voice 历史记录中的最后条目。", "fields": { "email": { - "description": "Accounts to clear. Empty will clear all.", + "description": "要清除的帐户。清空将清除所有帐户。", "name": "电子邮件地址" }, "entries": { @@ -86,7 +86,7 @@ "description": "强制帐户注销。主要用于调试。", "fields": { "email": { - "description": "Accounts to clear. Empty will clear all.", + "description": "要清除的帐户。清空将清除所有帐户。", "name": "电子邮件地址" } }, @@ -100,7 +100,7 @@ "name": "电子邮件地址" } }, - "name": "Update Last Called Sensor" + "name": "更新上次呼叫传感器" } } } diff --git a/custom_components/alexa_media/__init__.py b/custom_components/alexa_media/__init__.py index 43e6881a..925f152a 100644 --- a/custom_components/alexa_media/__init__.py +++ b/custom_components/alexa_media/__init__.py @@ -153,9 +153,10 @@ async def async_setup(hass, config, discovery_info=None): hass.config_entries.async_update_entry( entry, data={ + CONF_URL: account[CONF_URL], CONF_EMAIL: account[CONF_EMAIL], CONF_PASSWORD: account[CONF_PASSWORD], - CONF_URL: account[CONF_URL], + CONF_PUBLIC_URL: account[CONF_PUBLIC_URL], CONF_INCLUDE_DEVICES: account[CONF_INCLUDE_DEVICES], CONF_EXCLUDE_DEVICES: account[CONF_EXCLUDE_DEVICES], CONF_SCAN_INTERVAL: account[ @@ -186,7 +187,7 @@ async def async_setup(hass, config, discovery_info=None): CONF_URL: account[CONF_URL], CONF_EMAIL: account[CONF_EMAIL], CONF_PASSWORD: account[CONF_PASSWORD], - CONF_PUBLIC_URL: account[CONF_PUBLIC_URL], + CONF_PUBLIC_URL: account.get(CONF_PUBLIC_URL, ""), CONF_INCLUDE_DEVICES: account[CONF_INCLUDE_DEVICES], CONF_EXCLUDE_DEVICES: account[CONF_EXCLUDE_DEVICES], CONF_SCAN_INTERVAL: account[CONF_SCAN_INTERVAL].total_seconds(), diff --git a/custom_components/alexa_media/const.py b/custom_components/alexa_media/const.py index 1d79549d..9ffe6e13 100644 --- a/custom_components/alexa_media/const.py +++ b/custom_components/alexa_media/const.py @@ -15,7 +15,7 @@ PERCENTAGE, ) -__version__ = "4.13.7" +__version__ = "4.13.8" PROJECT_URL = "https://github.com/alandtse/alexa_media_player/" ISSUE_URL = f"{PROJECT_URL}issues" NOTIFY_URL = f"{PROJECT_URL}wiki/Configuration%3A-Notification-Component#use-the-notifyalexa_media-service" diff --git a/custom_components/alexa_media/manifest.json b/custom_components/alexa_media/manifest.json index 7aaa7832..0afbba13 100644 --- a/custom_components/alexa_media/manifest.json +++ b/custom_components/alexa_media/manifest.json @@ -9,5 +9,5 @@ "issue_tracker": "https://github.com/alandtse/alexa_media_player/issues", "loggers": ["alexapy", "authcaptureproxy"], "requirements": ["alexapy==1.29.4", "packaging>=20.3", "wrapt>=1.14.0"], - "version": "4.13.7" + "version": "4.13.8" } diff --git a/custom_components/alexa_media/translations/ru.json b/custom_components/alexa_media/translations/ru.json index 68678eb2..b252617e 100644 --- a/custom_components/alexa_media/translations/ru.json +++ b/custom_components/alexa_media/translations/ru.json @@ -34,7 +34,7 @@ "debug": "Расширенные возможности отладки", "email": "Адрес электронной почты", "exclude_devices": "Исключенные устройства (через запятую)", - "extended_entity_discovery": "Include devices connected via Echo", + "extended_entity_discovery": "Включить устройства, подключенные через Echo", "hass_url": "URL-адрес для доступа к Home Assistant", "include_devices": "Включенные устройства (разделенное запятыми)", "otp_secret": "Встроенный ключ приложения 2FA (автоматически генерирует коды 2FA). Это не шесть цифр.", @@ -62,8 +62,8 @@ "queue_delay": "Секунды ожидания, чтобы выполнить команды вместе", "scan_interval": "Секунды между сканированиями" }, - "description": "Required *", - "title": "Alexa Media Player - Reconfiguration" + "description": "Необходимый *", + "title": "Alexa Media Player - Перенастройка" } } }, diff --git a/custom_components/alexa_media/translations/zh-Hans.json b/custom_components/alexa_media/translations/zh-Hans.json index f316e723..18c6ea10 100644 --- a/custom_components/alexa_media/translations/zh-Hans.json +++ b/custom_components/alexa_media/translations/zh-Hans.json @@ -37,7 +37,7 @@ "extended_entity_discovery": "包括通过 Echo 连接的设备", "hass_url": "Url to access Home Assistant", "include_devices": "Included device (comma separated)", - "otp_secret": "内置 2FA App Key(自动生成 2FA 代码)。这不是六位数长。", + "otp_secret": "内置 2FA 应用程序密钥(自动生成 2FA 代码)。该密钥长度不为六位数字。", "password": "密码", "queue_delay": "Seconds to wait to queue commands together", "scan_interval": "Seconds between scans", @@ -62,8 +62,8 @@ "queue_delay": "Seconds to wait to queue commands together", "scan_interval": "Seconds between scans" }, - "description": "Required *", - "title": "Alexa Media Player - Reconfiguration" + "description": "必需的 *", + "title": "Alexa 媒体播放器 - 重新配置" } } }, @@ -72,7 +72,7 @@ "description": "清除每个 Alexa 帐户的 Alexa Voice 历史记录中的最后条目。", "fields": { "email": { - "description": "Accounts to clear. Empty will clear all.", + "description": "要清除的帐户。清空将清除所有帐户。", "name": "电子邮件地址" }, "entries": { @@ -86,7 +86,7 @@ "description": "强制帐户注销。主要用于调试。", "fields": { "email": { - "description": "Accounts to clear. Empty will clear all.", + "description": "要清除的帐户。清空将清除所有帐户。", "name": "电子邮件地址" } }, @@ -100,7 +100,7 @@ "name": "电子邮件地址" } }, - "name": "Update Last Called Sensor" + "name": "更新上次呼叫传感器" } } }