diff --git a/src/model.ts b/src/model.ts index 3fbf858..9442b7e 100644 --- a/src/model.ts +++ b/src/model.ts @@ -107,7 +107,8 @@ export default class MediaPlayerObject { if (this.platform === PLATFORM.SQUEEZEBOX) { return this._attr.sync_group || []; } - if (this.platform === PLATFORM.MEDIAPLAYER || this.platform === PLATFORM.HEOS) { + if (this.platform === PLATFORM.MEDIAPLAYER || this.platform === PLATFORM.HEOS + || PLATFORM.SONOS) { return this._attr.group_members || []; } return (this._attr[`${this.platform}_group`] || []) as string[]; @@ -391,7 +392,7 @@ export default class MediaPlayerObject { }, PLATFORM.SQUEEZEBOX, ); - case PLATFORM.MEDIAPLAYER: + case PLATFORM.MEDIAPLAYER || PLATFORM.SONOS: return this.callService( e, 'join', @@ -420,7 +421,7 @@ export default class MediaPlayerObject { return this.handleSoundtouch(e, 'REMOVE_ZONE_SLAVE', entity); case PLATFORM.SQUEEZEBOX: return this.callService(e, 'unsync', options, PLATFORM.SQUEEZEBOX); - case PLATFORM.MEDIAPLAYER: + case PLATFORM.MEDIAPLAYER || PLATFORM.SONOS: return this.callService( e, 'unjoin',