Revert "Do not delete all binding table entries"

This reverts commit 65bb10d6d6.
This commit is contained in:
Zach Varberg
2016-11-15 13:23:57 -06:00
parent 6c84c052cb
commit 3034cc8bcb

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"] != zigbee.zigbeeEui) {
if (entry["dstAddr"] != zigbeeEui) {
acc.addAll(removeBinding(entry.clusterId, entry.srcAddr, entry.srcEndpoint, entry.dstAddr, entry.dstEndpoint))
}
acc