The sunrise / sunset example code is not working

I removed the offset so the callback is simply: self.run_at_sunrise(self.sunrise_cb)
This commit is contained in:
Johan van der Kuijl 2017-10-28 08:12:54 +02:00 committed by GitHub
parent 2edf3c5242
commit 130a3d0ea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,8 +40,8 @@ import appdaemon.appapi as appapi
class OutsideLights(appapi.AppDaemon):
def initialize(self):
self.run_at_sunrise(self.sunrise_cb, 0)
self.run_at_sunset(self.sunset_cb, 0)
self.run_at_sunrise(self.sunrise_cb)
self.run_at_sunset(self.sunset_cb)
def sunrise_cb(self, kwargs):
self.turn_on(self.args["off_scene"])