Update FireCO2Alarm.groovy
authorRahmadi Trimananda <rahmadi.trimananda@uci.edu>
Wed, 31 Jul 2019 17:08:03 +0000 (10:08 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Wed, 31 Jul 2019 17:08:03 +0000 (10:08 -0700)
Adjusted for missing properties.

third-party/FireCO2Alarm.groovy

index c87b152..2340dcd 100755 (executable)
@@ -457,7 +457,7 @@ private flashLights() {
                def initialActionOn = switches.collect {
                        it.currentSwitch != "on"
                }
-               def delay = 1 L
+               def delay = 1
                numFlashes.times {
                        log.trace "Switch on after  $delay msec"
                        switches.eachWithIndex {
@@ -486,7 +486,7 @@ private flashLights() {
 }
 
 private send(msg) {
-       if (sendPushMessage != "No") {
+       /*if (sendPushMessage != "No") {
                log.debug("sending push message")
                sendPush(msg)
        }
@@ -494,6 +494,6 @@ private send(msg) {
        if (phoneNumber) {
                log.debug("sending text message")
                sendSms(phoneNumber, msg)
-       }
+       }*/
        log.debug msg
 }