From a68ceb31040d9740570dc696fa6f4a39ea894aa4 Mon Sep 17 00:00:00 2001 From: Cyborg2017 Date: Mon, 5 Jan 2026 20:53:32 +0800 Subject: [PATCH] fix: support of radar_induction_closing_time for T0x26(M0100040) --- .../midea_auto_cloud/device_mapping/T0x26.py | 8 +++++++- custom_components/midea_auto_cloud/translations/en.json | 3 +++ .../midea_auto_cloud/translations/zh-Hans.json | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/custom_components/midea_auto_cloud/device_mapping/T0x26.py b/custom_components/midea_auto_cloud/device_mapping/T0x26.py index d85bd9b..3e07394 100644 --- a/custom_components/midea_auto_cloud/device_mapping/T0x26.py +++ b/custom_components/midea_auto_cloud/device_mapping/T0x26.py @@ -165,7 +165,13 @@ DEVICE_MAPPING = { "max": 100, "step": 1, "unit_of_measurement": PERCENTAGE - } + }, + "radar_induction_closing_time": { + "min": 1, + "max": 5, + "step": 1, + "unit_of_measurement": UnitOfTime.MINUTES + } }, Platform.SWITCH: { "radar_induction_enable": { diff --git a/custom_components/midea_auto_cloud/translations/en.json b/custom_components/midea_auto_cloud/translations/en.json index 44335c9..522dd32 100644 --- a/custom_components/midea_auto_cloud/translations/en.json +++ b/custom_components/midea_auto_cloud/translations/en.json @@ -2055,6 +2055,9 @@ "custom_timing": { "name": "Light Off Timer" }, + "radar_induction_closing_time": { + "name": "Night Light Timer" + }, "keep_warm_time": { "name": "Keep Warm Time" }, diff --git a/custom_components/midea_auto_cloud/translations/zh-Hans.json b/custom_components/midea_auto_cloud/translations/zh-Hans.json index 8f778fc..d37cbd6 100644 --- a/custom_components/midea_auto_cloud/translations/zh-Hans.json +++ b/custom_components/midea_auto_cloud/translations/zh-Hans.json @@ -2188,6 +2188,9 @@ "custom_timing": { "name": "延时关灯" }, + "radar_induction_closing_time": { + "name": "夜灯延时关闭" + }, "keep_warm_time": { "name": "保温时间" },