From 65bb10d6d6424660874707a61be8c1d9a05ff8f1 Mon Sep 17 00:00:00 2001 From: Zach Varberg Date: Mon, 14 Nov 2016 14:34:53 -0600 Subject: [PATCH] Do not delete all binding table entries There was a bug when comparing the destination address for binding table entries that would cause all binding table entries to be deleted. This fixes that. This is a fix for: https://smartthings.atlassian.net/browse/DVCSMP-2175 --- .../zigbee-white-color-temperature-bulb.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicetypes/smartthings/zigbee-white-color-temperature-bulb.src/zigbee-white-color-temperature-bulb.groovy b/devicetypes/smartthings/zigbee-white-color-temperature-bulb.src/zigbee-white-color-temperature-bulb.groovy index 123a203..e8310a1 100644 --- a/devicetypes/smartthings/zigbee-white-color-temperature-bulb.src/zigbee-white-color-temperature-bulb.groovy +++ b/devicetypes/smartthings/zigbee-white-color-temperature-bulb.src/zigbee-white-color-temperature-bulb.groovy @@ -88,7 +88,7 @@ def parse(String description) { List 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