mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-05-20 22:07:38 +01:00
Merge pull request #514 from juano2310/logitech_hotfix
PROB-870 - Harmony fails to save credentials
This commit is contained in:
@@ -419,9 +419,11 @@ def addDevice() {
|
|||||||
def d = getChildDevice(dni)
|
def d = getChildDevice(dni)
|
||||||
if(!d) {
|
if(!d) {
|
||||||
def newAction = state.HarmonyActivities.find { it.key == dni }
|
def newAction = state.HarmonyActivities.find { it.key == dni }
|
||||||
|
if (newAction) {
|
||||||
d = addChildDevice("smartthings", "Harmony Activity", dni, null, [label:"${newAction.value} [Harmony Activity]"])
|
d = addChildDevice("smartthings", "Harmony Activity", dni, null, [label:"${newAction.value} [Harmony Activity]"])
|
||||||
log.trace "created ${d.displayName} with id $dni"
|
log.trace "created ${d.displayName} with id $dni"
|
||||||
poll()
|
poll()
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
log.trace "found ${d.displayName} with id $dni already exists"
|
log.trace "found ${d.displayName} with id $dni already exists"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user