Scheduler does not include offsets after callback time recalculation
What happened?
I run AD as addon on HA. I schedule several callbacks around the sunset with the code:
for n, time_offset in self.positions.items():
self.run_at_sunset(self.function, offset=time_offset, n=n)
Offsets are different negative values, about 40 seconds difference (like -100, -160, -200, -240,... etc).
Afer AD first start or restart, the callbacks are properly scheduled, but after the sunset when things are recalculated for the next day, all the callbacks register at the same time (sunset with no offset, I guess). See the attached screenshots.
Left: automatic recalculation after firing the previous day. Everything is wrongly scheduled at the same moment ignoring offsets. Right: after restart, the same calculation is done properly with offsets.
Version
4.5.11
Installation type
Home Assistant add-on
Relevant log output
Relevant code in the app or config file that caused the issue
Anything else?
No response
I am wondering if this is related to my issue in #2491.
This issue is stale because it has been open for 6 months with no activity. Remove stale label or comment or this will be closed in 15 days.
Please feel free re-open this issue if you have new information available