Update good-night.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Tue, 6 Aug 2019 19:40:42 +0000 (12:40 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Tue, 6 Aug 2019 19:40:42 +0000 (12:40 -0700)
official/good-night.groovy

index 3561eabd3398ef3e1ef1ab6f0c227768dcfd6e7a..5d8d1da267fcd9733d724aa948d95f7e8dcd1880 100755 (executable)
@@ -163,7 +163,7 @@ private allQuiet() {
                        false
                } else {
                        def sensor = states.first()
-                   def elapsed = now() - sensor.rawDateCreated.time
+                   def elapsed = now() - 0//sensor.rawDateCreated.time
                        if (elapsed >= threshold) {
                                log.debug "No active states, and enough time has passed"
                                true