diff --git a/appdaemon/adapi.py b/appdaemon/adapi.py index d81074149..a88c5ed27 100644 --- a/appdaemon/adapi.py +++ b/appdaemon/adapi.py @@ -3343,7 +3343,7 @@ async def run_at_sunset( self, callback: Callable, *args, - repeat: bool = False, + repeat: bool = True, offset: int | None = None, random_start: int | None = None, random_end: int | None = None, @@ -3357,6 +3357,7 @@ async def run_at_sunset( callback: Function to be invoked at or around sunset. It must conform to the standard Scheduler Callback format documented `here `__. *args: Arbitrary positional arguments to be provided to the callback function when it is triggered. + repeat (bool, option): Whether the callback should repeat every day. Defaults to ``True`` offset (int, optional): The time in seconds that the callback should be delayed after sunset. A negative value will result in the callback occurring before sunset. This parameter cannot be combined with ``random_start`` or ``random_end``. @@ -3415,7 +3416,7 @@ async def run_at_sunrise( self, callback: Callable, *args, - repeat: bool = False, + repeat: bool = True, offset: int | None = None, random_start: int | None = None, random_end: int | None = None, @@ -3428,8 +3429,8 @@ async def run_at_sunrise( Args: callback: Function to be invoked at or around sunrise. It must conform to the standard Scheduler Callback format documented `here `__. - *args: Arbitrary positional arguments to be provided to the callback function - when it is invoked. + *args: Arbitrary positional arguments to be provided to the callback function when it is invoked. + repeat (bool, option): Whether the callback should repeat every day. Defaults to ``True`` offset (int, optional): The time in seconds that the callback should be delayed after sunrise. A negative value will result in the callback occurring before sunrise. This parameter cannot be combined with ``random_start`` or ``random_end``.