A little modification for location.mode.
authorrtrimana <rtrimana@uci.edu>
Fri, 18 Oct 2019 18:11:54 +0000 (11:11 -0700)
committerrtrimana <rtrimana@uci.edu>
Fri, 18 Oct 2019 18:11:54 +0000 (11:11 -0700)
Location/LocationVar.groovy

index e2cf09b..88f34d6 100755 (executable)
@@ -59,9 +59,12 @@ class LocationVar {
                        } else if (sentMode == "away") {
                                this.mode = "away"
                                this.locationMode = "away"
-                       } else {
+                       } else if (sentMode == "night") {
                                this.mode = "night"
                                this.locationMode = "night"
+                       } else {
+                               this.mode = sentMode
+                               this.locationMode = sentMode
                        }
                        sendEvent(eventDataMap)
                }