DVCSMP-1959 fixed issue with logging personal information and unused subscription from SmartApps

This commit is contained in:
David Sainte-Claire
2016-08-16 11:35:04 -07:00
parent 47183ebbff
commit 90384d0852
4 changed files with 8 additions and 12 deletions

View File

@@ -25,14 +25,10 @@ preferences {
def installed() {
subscribe(contact1, "contact", contactHandler)
subscribe(switch1, "switch.on", switchOnHandler)
subscribe(switch1, "switch.off", switchOffHandler)
}
def updated() {
unsubscribe()
subscribe(contact1, "contact", contactHandler)
subscribe(switch1, "switch.on", switchOnHandler)
subscribe(switch1, "switch.off", switchOffHandler)
}
@@ -46,4 +42,4 @@ def contactHandler(evt) {
if (evt.value == "closed") {
if(state.wasOn)switch1.on()
}
}
}