Update lighting-director.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Fri, 9 Aug 2019 19:01:31 +0000 (12:01 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Fri, 9 Aug 2019 19:01:31 +0000 (12:01 -0700)
official/lighting-director.groovy

index a73c496..f1e9375 100755 (executable)
@@ -263,19 +263,19 @@ def initialize() {
        midNightReset()
 
        if(A_motion) {
-               subscribe(settings.A_motion, "motion", onEventA)
+               subscribe(A_motion, "motion", onEventA)
        }
 
        if(A_acceleration) {
-               subscribe(settings.A_acceleration, "acceleration", onEventA)
+               subscribe(A_acceleration, "acceleration", onEventA)
        }
 
        if(A_contact) {
-               subscribe(settings.A_contact, "contact", onEventA)
+               subscribe(A_contact, "contact", onEventA)
        }
 
        if(A_lock) {
-               subscribe(settings.A_lock, "lock", onEventA)
+               subscribe(A_lock, "lock", onEventA)
        }
 
        if(A_switchDisable) {