mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-18 16:10:44 +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': {
|
'optional': {
|
||||||
'play-control': {
|
'play-control': {
|
||||||
'required': {},
|
'required': {
|
||||||
|
'properties': {
|
||||||
|
'playing-state': {'read'}
|
||||||
|
}
|
||||||
|
},
|
||||||
'optional': {
|
'optional': {
|
||||||
'properties': {'playing-state'},
|
|
||||||
'actions': {'play', 'pause', 'stop', 'next', 'previous'}
|
'actions': {'play', 'pause', 'stop', 'next', 'previous'}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -397,7 +400,7 @@ SPEC_DEVICE_TRANS_MAP: dict = {
|
|||||||
'play-control': {
|
'play-control': {
|
||||||
'required': {
|
'required': {
|
||||||
'properties': {
|
'properties': {
|
||||||
'playing-state': {'read', 'write'}
|
'playing-state': {'read'}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'optional': {
|
'optional': {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user