mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-12-17 09:55:51 +00:00
fix: support of follow_body_sense.
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -15,6 +15,7 @@ DEVICE_MAPPING = {
|
||||
},
|
||||
"bubble": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": [0, 1],
|
||||
},
|
||||
"cold_water": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
|
||||
Reference in New Issue
Block a user