Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions appdaemon/adapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 <APPGUIDE.html#about-schedule-callbacks>`__.
*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``.
Expand Down Expand Up @@ -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,
Expand All @@ -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 <APPGUIDE.html#about-schedule-callbacks>`__.
*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``.
Expand Down
Loading