feat: change entity for water heater.

This commit is contained in:
sususweet
2025-11-03 11:38:11 +08:00
parent 329fbce3dd
commit aea43aad0c
3 changed files with 8 additions and 7 deletions

View File

@@ -10,10 +10,10 @@ DEVICE_MAPPING = {
"queries": [{}],
"centralized": [],
"entities": {
Platform.WATER_HEATER: {
Platform.CLIMATE: {
"water_heater": {
"power": "power",
"operation_list": {
"hvac_modes": {
"off": {"power": "off"},
"on": {"power": "on"},
},
@@ -26,6 +26,9 @@ DEVICE_MAPPING = {
}
},
Platform.SWITCH: {
"power": {
"device_class": SwitchDeviceClass.SWITCH,
},
"ti_protect": {
"device_class": SwitchDeviceClass.SWITCH,
},

View File

@@ -10,6 +10,9 @@ DEVICE_MAPPING = {
"centralized": [],
"entities": {
Platform.SWITCH: {
"power": {
"device_class": SwitchDeviceClass.SWITCH,
},
"bubble": {
"device_class": SwitchDeviceClass.SWITCH,
"rationale": [0, 1]