mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-04-05 14:23:09 +01:00
atomicState to state (all)
This commit is contained in:
@@ -217,7 +217,7 @@ Map bulbsDiscovered() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def getHueBulbs() {
|
def getHueBulbs() {
|
||||||
atomicState.bulbs = atomicState.bulbs ?: [:]
|
state.bulbs = state.bulbs ?: [:]
|
||||||
}
|
}
|
||||||
|
|
||||||
def getHueBridges() {
|
def getHueBridges() {
|
||||||
@@ -276,8 +276,8 @@ def bulbListHandler(hub, data) {
|
|||||||
if (v instanceof Map)
|
if (v instanceof Map)
|
||||||
bulbs[k] = [id: k, name: v.name, type: v.type, hub:hub]
|
bulbs[k] = [id: k, name: v.name, type: v.type, hub:hub]
|
||||||
}
|
}
|
||||||
atomicState.bulbs = bulbs
|
state.bulbs = bulbs
|
||||||
msg = "${bulbs.size()} bulbs found. $atomicState.bulbs"
|
msg = "${bulbs.size()} bulbs found. $state.bulbs"
|
||||||
}
|
}
|
||||||
return msg
|
return msg
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user