diff --git a/lib/extension/bind.js b/lib/extension/bind.js index 59b4736ab..fa1870deb 100755 --- a/lib/extension/bind.js +++ b/lib/extension/bind.js @@ -277,10 +277,9 @@ class Bind extends Extension { } async groupMembersChanged(data) { - const bindsToGroup = this.zigbee.getClients().map((c) => c.endpoints).flat().map((e) => e.binds) - .flat().filter((b) => b.target === data.group.group); - if (data.action === 'add') { + const bindsToGroup = this.zigbee.getClients().map((c) => c.endpoints).flat().map((e) => e.binds) + .flat().filter((b) => b.target === data.group.group); await this.setupReporting(bindsToGroup); } else { // action === remove/remove_all if (!data.skipDisableReporting) {