mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-12 11:50:43 +08:00
feat: set playing-state as required property in play-control service for television device
This commit is contained in:
parent
5e78152551
commit
9419352ab3
@ -362,9 +362,12 @@ SPEC_DEVICE_TRANS_MAP: dict = {
|
||||
},
|
||||
'optional': {
|
||||
'play-control': {
|
||||
'required': {},
|
||||
'required': {
|
||||
'properties': {
|
||||
'playing-state': {'read'}
|
||||
}
|
||||
},
|
||||
'optional': {
|
||||
'properties': {'playing-state'},
|
||||
'actions': {'play', 'pause', 'stop', 'next', 'previous'}
|
||||
}
|
||||
}
|
||||
@ -397,7 +400,7 @@ SPEC_DEVICE_TRANS_MAP: dict = {
|
||||
'play-control': {
|
||||
'required': {
|
||||
'properties': {
|
||||
'playing-state': {'read', 'write'}
|
||||
'playing-state': {'read'}
|
||||
}
|
||||
},
|
||||
'optional': {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user