feat: convert the mode of the ptc bath heater to the preset mode

This commit is contained in:
LiShuzhen
2025-03-12 17:29:09 +08:00
parent 8be0fa5d61
commit 9f970de2c2
2 changed files with 29 additions and 29 deletions

View File

@ -276,13 +276,14 @@ SPEC_DEVICE_TRANS_MAP: dict = {
'bath-heater': {
'required': {
'ptc-bath-heater': {
'required': {},
'optional': {
'required': {
'properties': {
'target-temperature', 'heat-level',
'temperature', 'mode'
'mode':{'read', 'write'}
}
},
'optional': {
'properties': {'target-temperature', 'temperature'}
}
}
},
'optional': {
@ -400,7 +401,7 @@ SPEC_SERVICE_TRANS_MAP: dict = {
},
'optional': {
'properties': {
'motor-control', 'status', 'current-position', 'target-position'
'status', 'current-position', 'target-position'
}
},
'entity': 'cover'