fix: Add correct power switch and control status entities for T0xD9

* Note: `power` is the washing machine's power switch,
        `db_running_status` only displays the running status of the current drum,
        `db_control_status` is the switch to start or pause the current drum.
This commit is contained in:
Cyborg2017
2025-12-28 11:31:51 +08:00
parent e532f9deab
commit ca1953ba46

View File

@@ -24,6 +24,14 @@ DEVICE_MAPPING = {
},
},
Platform.SWITCH: {
"db_power": {
"device_class": SwitchDeviceClass.SWITCH,
},
"db_control_status": {
"device_class": SwitchDeviceClass.SWITCH,
"rationale": ["pause", "start"],
"translation_key": "control_status",
}
},
Platform.SELECT: {
"db_location_selection": {
@@ -32,17 +40,6 @@ DEVICE_MAPPING = {
"right": {"db_location_selection": "right"}
}
},
"db_running_status": {
"options": {
"off": {"db_power": "off", "db_running_status": "off"},
"standby": {"db_power": "on", "db_running_status": "standby"},
"start": {"db_power": "on", "db_running_status": "start"},
"pause": {"db_power": "on", "db_running_status": "pause"},
"end": {"db_power": "on", "db_running_status": "end"},
"fault": {"db_power": "on", "db_running_status": "fault"},
"delay": {"db_power": "on", "db_running_status": "delay"}
}
},
"db_program": {
"options": {
"baby_clothes": {"db_program": "baby_clothes"},