fix: support of follow_body_sense.

This commit is contained in:
sususweet
2025-11-28 11:37:58 +08:00
parent b8104a8643
commit 3f0ec3faa9
4 changed files with 15 additions and 18 deletions

View File

@@ -109,10 +109,14 @@ DEVICE_MAPPING = {
"aux_heat": {
"device_class": SwitchDeviceClass.SWITCH,
},
"follow_body_sense_enable": {
"device_class": SwitchDeviceClass.SWITCH,
"rationale": [0, 1]
},
},
Platform.SELECT: {
"follow_body_sense": {
"options": {
"on": {"follow_body_sense": "on", "follow_body_sense_enable": 1},
"off": {"follow_body_sense": "off", "follow_body_sense_enable": 1},
}
}
},
Platform.SENSOR: {
"mode": {
@@ -215,10 +219,6 @@ DEVICE_MAPPING = {
"aux_heat": {
"device_class": SwitchDeviceClass.SWITCH,
},
"follow_body_sense_enable": {
"device_class": SwitchDeviceClass.SWITCH,
"rationale": [0, 1]
},
"manul_fresh_air": {
"device_class": SwitchDeviceClass.SWITCH,
},
@@ -338,10 +338,6 @@ DEVICE_MAPPING = {
"aux_heat": {
"device_class": SwitchDeviceClass.SWITCH,
},
"follow_body_sense_enable": {
"device_class": SwitchDeviceClass.SWITCH,
"rationale": [0, 1]
},
},
Platform.SENSOR: {
"mode": {