projects
/
smartapps.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
937c32b
)
Update good-night.groovy
author
Seyed Amir Hossein Aqajari
<amiraj.95@uci.edu>
Tue, 6 Aug 2019 19:40:42 +0000
(12:40 -0700)
committer
GitHub Enterprise
<noreply@github.uci.edu>
Tue, 6 Aug 2019 19:40:42 +0000
(12:40 -0700)
official/good-night.groovy
patch
|
blob
|
history
diff --git
a/official/good-night.groovy
b/official/good-night.groovy
index 3561eabd3398ef3e1ef1ab6f0c227768dcfd6e7a..5d8d1da267fcd9733d724aa948d95f7e8dcd1880 100755
(executable)
--- a/
official/good-night.groovy
+++ b/
official/good-night.groovy
@@
-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