bencevans / node-sonos

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

Add missing import #497

Closed mmathys closed 3 years ago

mmathys commented 3 years ago

If the import is missing, the following error is thrown:

sonos = new Sonos(device.host)
  ^

ReferenceError: Sonos is not defined

This PR should resolve this. Cheers.

svrooij commented 3 years ago

Thanks for your contribution @mmathys actually the device discovery was returning an instance of Sonos already. I fix the docs