Skip to content

Commit 4d2f810

Browse files
committed
fixed defaults on run_at_sunrise/set
1 parent 41ff952 commit 4d2f810

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

appdaemon/adapi.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3343,7 +3343,7 @@ async def run_at_sunset(
33433343
self,
33443344
callback: Callable,
33453345
*args,
3346-
repeat: bool = False,
3346+
repeat: bool = True,
33473347
offset: int | None = None,
33483348
random_start: int | None = None,
33493349
random_end: int | None = None,
@@ -3357,6 +3357,7 @@ async def run_at_sunset(
33573357
callback: Function to be invoked at or around sunset. It must conform to the
33583358
standard Scheduler Callback format documented `here <APPGUIDE.html#about-schedule-callbacks>`__.
33593359
*args: Arbitrary positional arguments to be provided to the callback function when it is triggered.
3360+
repeat (bool, option): Whether the callback should repeat every day. Defaults to ``True``
33603361
offset (int, optional): The time in seconds that the callback should be delayed after
33613362
sunset. A negative value will result in the callback occurring before sunset.
33623363
This parameter cannot be combined with ``random_start`` or ``random_end``.
@@ -3415,7 +3416,7 @@ async def run_at_sunrise(
34153416
self,
34163417
callback: Callable,
34173418
*args,
3418-
repeat: bool = False,
3419+
repeat: bool = True,
34193420
offset: int | None = None,
34203421
random_start: int | None = None,
34213422
random_end: int | None = None,
@@ -3428,8 +3429,8 @@ async def run_at_sunrise(
34283429
Args:
34293430
callback: Function to be invoked at or around sunrise. It must conform to the
34303431
standard Scheduler Callback format documented `here <APPGUIDE.html#about-schedule-callbacks>`__.
3431-
*args: Arbitrary positional arguments to be provided to the callback function
3432-
when it is invoked.
3432+
*args: Arbitrary positional arguments to be provided to the callback function when it is invoked.
3433+
repeat (bool, option): Whether the callback should repeat every day. Defaults to ``True``
34333434
offset (int, optional): The time in seconds that the callback should be delayed after
34343435
sunrise. A negative value will result in the callback occurring before sunrise.
34353436
This parameter cannot be combined with ``random_start`` or ``random_end``.

0 commit comments

Comments
 (0)