mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-08 05:31:56 +00:00
DVCSMP-1959: Unsubscribe from a pointless method (#1215)
* Unsubscribe from a pointless method * Remove subscription to pointless method
This commit is contained in:
committed by
Juan Pablo Risso
parent
878eb66b8b
commit
324ac13afb
@@ -71,7 +71,7 @@ def updated() {
|
||||
private subscribeToEvents()
|
||||
{
|
||||
subscribe intrusionMotions, "motion", intruderMotion
|
||||
subscribe residentMotions, "motion", residentMotion
|
||||
// subscribe residentMotions, "motion", residentMotion
|
||||
subscribe intrusionContacts, "contact", contact
|
||||
subscribe alarms, "alarm", alarm
|
||||
subscribe(app, appTouch)
|
||||
@@ -156,6 +156,7 @@ def residentMotion(evt)
|
||||
// startReArmSequence()
|
||||
// }
|
||||
//}
|
||||
unsubscribe(‘residentMotion’)
|
||||
}
|
||||
|
||||
def contact(evt)
|
||||
@@ -214,7 +215,7 @@ def checkForReArm()
|
||||
}
|
||||
else {
|
||||
log.warn "checkForReArm: lastIntruderMotion was null, unable to check for re-arming intrusion detection"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private startAlarmSequence()
|
||||
|
||||
Reference in New Issue
Block a user