bencevans / node-sonos

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

fix: sonos.getAllGroups always return array #354

Closed bencevans closed 5 years ago

bencevans commented 5 years ago

@svrooij ready for review 🎉 This fixes an issue where all devices are in a single group getAllGroups() returns an object representing that group whereas if there's multiple groups then it returns an array. Just standardising the returned value to minimise handling in end apps e.g. https://github.com/bencevans/sonos-cli/commit/5cc7c540fe451244e05653cd343335239b846bc0

bencevans commented 5 years ago

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

The release is available on:

Your semantic-release bot :package::rocket: