atomicState to state (all)

This commit is contained in:
Juan Pablo Risso
2015-09-10 15:07:32 -04:00
parent d977c4d46b
commit 33f1209c80

View File

@@ -217,7 +217,7 @@ Map bulbsDiscovered() {
}
def getHueBulbs() {
atomicState.bulbs = atomicState.bulbs ?: [:]
state.bulbs = state.bulbs ?: [:]
}
def getHueBridges() {
@@ -276,8 +276,8 @@ def bulbListHandler(hub, data) {
if (v instanceof Map)
bulbs[k] = [id: k, name: v.name, type: v.type, hub:hub]
}
atomicState.bulbs = bulbs
msg = "${bulbs.size()} bulbs found. $atomicState.bulbs"
state.bulbs = bulbs
msg = "${bulbs.size()} bulbs found. $state.bulbs"
}
return msg
}