bencevans / node-sonos

🔈 Sonos Media Player Interface/Client
https://www.npmjs.com/package/sonos
MIT License
702 stars 147 forks source link

Fix issue when groups is not an array #427

Closed mortenscheel closed 5 years ago

mortenscheel commented 5 years ago

zoneGroupState.ZoneGroups.ZoneGroup is not always an array, which lead to ZoneGroup.ZoneGroupMember also not being an array.

This fixes an issue where sonos-cli list commands fail with TypeError: zone.ZoneGroupMember.find is not a function

I'm not sure if this issue should be fixed here or in sonos-cli though.

bencevans commented 5 years ago

:tada: This PR is included in version 1.12.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: