Merge pull request #3809 from Rubyan/patch-2
Fixed the sunrise / sunset example code in the documentation
This commit is contained in:
commit
a58d2a88a1
1 changed files with 2 additions and 2 deletions
|
@ -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"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue