From d5c1f3dce923c07079a314c4b20ff4af4a12513e Mon Sep 17 00:00:00 2001 From: sususweet Date: Wed, 4 Feb 2026 23:34:11 +0800 Subject: [PATCH] fix: prevent straight wind feature for T0xAC (22040023). Fix #75. --- custom_components/midea_auto_cloud/device_mapping/T0xAC.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/custom_components/midea_auto_cloud/device_mapping/T0xAC.py b/custom_components/midea_auto_cloud/device_mapping/T0xAC.py index 1aadcfa..e7e67a0 100644 --- a/custom_components/midea_auto_cloud/device_mapping/T0xAC.py +++ b/custom_components/midea_auto_cloud/device_mapping/T0xAC.py @@ -1128,7 +1128,7 @@ DEVICE_MAPPING = { }, ("22012369", "22040023", "22270043"): { "rationale": ["off", "on"], - "queries": [{}], + "queries": [{}, {"query_type": "prevent_straight_wind"}], "centralized": ["buzzer"], "calculate":{ "get": [ @@ -1192,6 +1192,10 @@ DEVICE_MAPPING = { "device_class": SwitchDeviceClass.SWITCH, "translation_key": "screen_close", }, + "prevent_straight_wind": { + "device_class": SwitchDeviceClass.SWITCH, + "rationale": [1, 2] + }, "dry": { "device_class": SwitchDeviceClass.SWITCH, },