Merge pull request #1464 from varzac/fix-zigbee-white-tunable-binding-table

[DVCSMP-2175] Do not delete all binding table entries
This commit is contained in:
Vinay Rao
2016-11-14 14:14:21 -08:00
committed by GitHub

View File

@@ -88,7 +88,7 @@ def parse(String description) {
List<String> cmds = []
bindingTable.table_entries.inject(cmds) { acc, entry ->
// The binding entry is not for our hub and should be deleted
if (entry["dstAddr"] != zigbeeEui) {
if (entry["dstAddr"] != zigbee.zigbeeEui) {
acc.addAll(removeBinding(entry.clusterId, entry.srcAddr, entry.srcEndpoint, entry.dstAddr, entry.dstEndpoint))
}
acc