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 f1d88e7..783684a 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)