From 9be4c28bdde588b8c9037d5bfb0b8ba5134648c7 Mon Sep 17 00:00:00 2001 From: Cyborg2017 Date: Sun, 21 Dec 2025 15:45:42 +0800 Subject: [PATCH] feat: add offline voice function support for T0x17 Change-Id: Ia599072e4b9a77c360e11b5b1174bdd71d9a9c0c --- custom_components/midea_auto_cloud/device_mapping/T0x17.py | 3 +++ custom_components/midea_auto_cloud/translations/en.json | 3 +++ custom_components/midea_auto_cloud/translations/zh-Hans.json | 3 +++ 3 files changed, 9 insertions(+) diff --git a/custom_components/midea_auto_cloud/device_mapping/T0x17.py b/custom_components/midea_auto_cloud/device_mapping/T0x17.py index e709ea6..3d1699d 100644 --- a/custom_components/midea_auto_cloud/device_mapping/T0x17.py +++ b/custom_components/midea_auto_cloud/device_mapping/T0x17.py @@ -37,6 +37,9 @@ DEVICE_MAPPING = { }, "laundry": { "device_class": SwitchDeviceClass.SWITCH, + }, + "offline_voice_function": { + "device_class": SwitchDeviceClass.SWITCH, } }, } diff --git a/custom_components/midea_auto_cloud/translations/en.json b/custom_components/midea_auto_cloud/translations/en.json index e0bbbec..4154f35 100644 --- a/custom_components/midea_auto_cloud/translations/en.json +++ b/custom_components/midea_auto_cloud/translations/en.json @@ -2001,6 +2001,9 @@ "laundry": { "name": "One Key Laundry" }, + "offline_voice_function": { + "name": "Offline Voice" + }, "winter_mode": { "name": "Winter Mode" }, diff --git a/custom_components/midea_auto_cloud/translations/zh-Hans.json b/custom_components/midea_auto_cloud/translations/zh-Hans.json index c604455..d3ca10a 100644 --- a/custom_components/midea_auto_cloud/translations/zh-Hans.json +++ b/custom_components/midea_auto_cloud/translations/zh-Hans.json @@ -2101,6 +2101,9 @@ "laundry": { "name": "一键晾衣" }, + "offline_voice_function": { + "name": "离线语音" + }, "winter_mode": { "name": "冬季模式" },