From b2a2c80133506f7080cf630ba1abc3d8d2e2a28c Mon Sep 17 00:00:00 2001 From: sususweet Date: Wed, 19 Nov 2025 02:06:47 +0800 Subject: [PATCH] feat: update wash function for T0xED. --- .../midea_auto_cloud/device_mapping/T0xED.py | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/custom_components/midea_auto_cloud/device_mapping/T0xED.py b/custom_components/midea_auto_cloud/device_mapping/T0xED.py index 73fc18b..d7ddb9b 100644 --- a/custom_components/midea_auto_cloud/device_mapping/T0xED.py +++ b/custom_components/midea_auto_cloud/device_mapping/T0xED.py @@ -17,9 +17,6 @@ DEVICE_MAPPING = { "heat": { "device_class": SwitchDeviceClass.SWITCH, }, - "antifreeze": { - "device_class": SwitchDeviceClass.SWITCH, - }, "lock": { "device_class": SwitchDeviceClass.SWITCH, }, @@ -29,22 +26,13 @@ DEVICE_MAPPING = { "keep_warm": { "device_class": SwitchDeviceClass.SWITCH, }, - "vacation": { - "device_class": SwitchDeviceClass.SWITCH, - }, "germicidal": { "device_class": SwitchDeviceClass.SWITCH, }, - "lack_water": { - "device_class": SwitchDeviceClass.SWITCH, - }, "drainage": { "device_class": SwitchDeviceClass.SWITCH, }, - "wash_enable": { - "device_class": SwitchDeviceClass.SWITCH, - }, - "water_way": { + "wash": { "device_class": SwitchDeviceClass.SWITCH, }, "soften": { @@ -65,14 +53,14 @@ DEVICE_MAPPING = { "cl_sterilization": { "device_class": SwitchDeviceClass.SWITCH, }, - "holiday_mode": { - "device_class": SwitchDeviceClass.SWITCH, - }, }, Platform.BINARY_SENSOR: { "heat_status": { "device_class": BinarySensorDeviceClass.RUNNING, }, + "lack_water": { + "device_class": BinarySensorDeviceClass.PROBLEM, + }, "standby_status": { "device_class": BinarySensorDeviceClass.RUNNING, },