Merge pull request #1783 from larsfinander/hue_add_bridge_if_missing_production

Hue: Re-add Hue bridge if deleted
This commit is contained in:
Vinay Rao
2017-03-14 18:42:40 -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()