处理小爱音箱media_player实体没有问题

This commit is contained in:
devttl 2026-01-10 17:36:51 +08:00
parent 001af5384a
commit 140e8808f4

View File

@ -325,13 +325,10 @@ SPEC_DEVICE_TRANS_MAP: dict = {
}, },
'play-control': { 'play-control': {
'required': { 'required': {
'properties': {
'playing-state': {'read'}
},
'actions': {'play'} 'actions': {'play'}
}, },
'optional': { 'optional': {
'properties': {'play-loop-mode'}, 'properties': {'playing-state', 'play-loop-mode'},
'actions': {'pause', 'stop', 'next', 'previous'} 'actions': {'pause', 'stop', 'next', 'previous'}
} }
} }
@ -376,7 +373,7 @@ SPEC_DEVICE_TRANS_MAP: dict = {
}, },
'entity': 'television' 'entity': 'television'
}, },
'tv-box':{ 'tv-box': {
'required': { 'required': {
'speaker': { 'speaker': {
'required': { 'required': {