From 843f703f336ffecea06e4993ea9f3bb69cff248c Mon Sep 17 00:00:00 2001 From: Rahmadi Trimananda Date: Sat, 10 Aug 2019 10:28:43 -0700 Subject: [PATCH] Update circadian-daylight.groovy --- third-party/circadian-daylight.groovy | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/third-party/circadian-daylight.groovy b/third-party/circadian-daylight.groovy index d5100d5..c67053f 100755 --- a/third-party/circadian-daylight.groovy +++ b/third-party/circadian-daylight.groovy @@ -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() } -- 2.34.1