From fed85199960f29d6d4b8243f25fb38a4e9da2991 Mon Sep 17 00:00:00 2001 From: Cyborg2017 Date: Sat, 7 Feb 2026 22:04:44 +0800 Subject: [PATCH] fix: update T0xD9 binary sensor and translation keys --- .../midea_auto_cloud/device_mapping/T0xD9.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/custom_components/midea_auto_cloud/device_mapping/T0xD9.py b/custom_components/midea_auto_cloud/device_mapping/T0xD9.py index 0c3a39c..6fb3636 100644 --- a/custom_components/midea_auto_cloud/device_mapping/T0xD9.py +++ b/custom_components/midea_auto_cloud/device_mapping/T0xD9.py @@ -19,17 +19,21 @@ DEVICE_MAPPING = { }, "entities": { Platform.BINARY_SENSOR: { - "db_power": { - "device_class": BinarySensorDeviceClass.RUNNING, - }, - "door_opened": { + "db_door_opened": { "device_class": BinarySensorDeviceClass.OPENING, + "translation_key": "door_opened" }, - "bucket_water_overheating": { + "db_bucket_water_overheating": { "device_class": BinarySensorDeviceClass.PROBLEM, + "translation_key": "bucket_water_overheating" }, - "drying_tunnel_overheating": { + "db_drying_tunnel_overheating": { "device_class": BinarySensorDeviceClass.PROBLEM, + "translation_key": "drying_tunnel_overheating" + }, + "db_detergent_needed": { + "device_class": BinarySensorDeviceClass.PROBLEM, + "translation_key": "detergent_lack" } }, Platform.SWITCH: {