Update circadian-daylight.groovy
[smartapps.git] / third-party / circadian-daylight.groovy
index d5100d553183abf974508236b8d10ce39037d52b..c67053f6f77a9368b3f0adae36274a7411e189b5 100755 (executable)
@@ -112,8 +112,7 @@ private def initialize() {
     subscribe(location, "sunrise", modeHandler)
     schedule("0 */15 * * * ?", modeHandler)
     subscribe(app,modeHandler)
-    // There seems to be a bug in the Groovy compiler with the following line
-    //subscribe(location, "sunsetTime", scheduleTurnOn)
+    subscribe(location, "sunsetTime", scheduleTurnOn)
     // rather than schedule a cron entry, fire a status update a little bit in the future recursively
     scheduleTurnOn()
 }