mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-04-05 14:23:09 +01:00
Merge pull request #650 from SmartThingsCommunity/MSA-963-2
MSA-963: Vinli Home Connect
This commit is contained in:
@@ -67,11 +67,11 @@ mappings {
|
|||||||
def listAllDevices() {
|
def listAllDevices() {
|
||||||
def resp = []
|
def resp = []
|
||||||
switches.each {
|
switches.each {
|
||||||
resp << [name: it.name, label: it.label, value: it.currentValue("switch"), type: "switch", id: it.id, hub: it.hub.name]
|
resp << [name: it.name, label: it.label, value: it.currentValue("switch"), type: "switch", id: it.id, hub: it.hub?.name]
|
||||||
}
|
}
|
||||||
|
|
||||||
locks.each {
|
locks.each {
|
||||||
resp << [name: it.name, label: it.label, value: it.currentValue("lock"), type: "lock", id: it.id, hub: it.hub.name]
|
resp << [name: it.name, label: it.label, value: it.currentValue("lock"), type: "lock", id: it.id, hub: it.hub?.name]
|
||||||
}
|
}
|
||||||
return resp
|
return resp
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user