Skip to content

Commit

Permalink
Making sure we don't select a bridge as first
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalopitz committed Dec 31, 2021
1 parent e2badff commit 88b0927
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/services/SonosService.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ const SonosService = {
groups.reduce(
(p, z) => [
...p,
...z.ZoneGroupMember.map(async (m) => {
...z.ZoneGroupMember.filter(
(m) => get(m, 'IsZoneBridge') !== '1'
).map(async (m) => {
const uri = new URL(m.Location);
const host = uri.hostname;
const device = new SonosEnhanced(host);
Expand Down

0 comments on commit 88b0927

Please sign in to comment.