Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #7 from sascha/ignore-sub
Browse files Browse the repository at this point in the history
Ignore Sonos Sub when doing device discovery
  • Loading branch information
stephen committed Apr 23, 2014
2 parents f1c3d94 + dd893c4 commit 71dd3ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var Nicercast = require('nicercast');
console.log('Searching for Sonos devices on network...');
sonos.search(function(device, model) {

if (model === 'BR100') return; // ignore Sonos Bridge device
if (model === 'BR100' || model === 'ANVIL') return; // ignore Sonos Bridge and Sub device
device.getZoneAttrs(function(err, zoneAttrs) {
if (err) throw err;

Expand Down Expand Up @@ -57,4 +57,3 @@ sonos.search(function(device, model) {
});

});

0 comments on commit 71dd3ca

Please sign in to comment.