From 65f5597ccc66028af01f38ddde8db42f6f6246da Mon Sep 17 00:00:00 2001 From: Vinay Rao Date: Tue, 14 Mar 2017 21:00:22 -0700 Subject: [PATCH] Revert "Hue: Re-add Hue bridge if deleted" --- smartapps/smartthings/hue-connect.src/hue-connect.groovy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/smartapps/smartthings/hue-connect.src/hue-connect.groovy b/smartapps/smartthings/hue-connect.src/hue-connect.groovy index 26128be..047a8dd 100644 --- a/smartapps/smartthings/hue-connect.src/hue-connect.groovy +++ b/smartapps/smartthings/hue-connect.src/hue-connect.groovy @@ -472,6 +472,8 @@ def addBridge() { log.error "Failed to create Hue Bridge device" } } + } else { + log.debug "found ${d.displayName} with id $selectedHue already exists" } } } @@ -713,9 +715,6 @@ def doDeviceSync(){ log.warn "state.updating failed to clear" } - if (selectedHue) { - addBridge() - } convertBulbListToMap() poll() ssdpSubscribe()