feat: update wash function for T0xED.

This commit is contained in:
sususweet
2025-11-19 02:06:47 +08:00
parent cbaf99592f
commit b2a2c80133

View File

@@ -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,
},