Merge pull request #1792 from SmartThingsCommunity/revert-1784-revert-1783-hue_add_bridge_if_missing_production

Revert "Revert "Hue: Re-add Hue bridge if deleted""
This commit is contained in:
Vinay Rao
2017-03-16 04:37:53 -07:00
committed by GitHub

View File

@@ -472,8 +472,6 @@ def addBridge() {
log.error "Failed to create Hue Bridge device"
}
}
} else {
log.debug "found ${d.displayName} with id $selectedHue already exists"
}
}
}
@@ -715,6 +713,9 @@ def doDeviceSync(){
log.warn "state.updating failed to clear"
}
if (selectedHue) {
addBridge()
}
convertBulbListToMap()
poll()
ssdpSubscribe()