Update sunrise-sunset.groovy
authorRahmadi Trimananda <rahmadi.trimananda@uci.edu>
Thu, 8 Aug 2019 21:04:10 +0000 (14:04 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Thu, 8 Aug 2019 21:04:10 +0000 (14:04 -0700)
official/sunrise-sunset.groovy

index f1d88e736c6c878aeebd725144f115dffbd9c04a..783684a58786b530e30740665e21a2399acad0f2 100755 (executable)
@@ -68,7 +68,7 @@ def updated() {
 }
 
 def initialize() {
-       subscribe(location, "position", locationPositionChange)
+       subscribe(location, "mode", locationPositionChange)
        subscribe(location, "sunriseTime", sunriseSunsetTimeHandler)
        subscribe(location, "sunsetTime", sunriseSunsetTimeHandler)