Skip to content

Commit 761cd4d

Browse files
committed
Issue #693
1 parent 1b1ddac commit 761cd4d

3 files changed

Lines changed: 3 additions & 1382 deletions

File tree

‎src/ha_addon_sunsynk_multi/timer_callback.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ async def wrap_callback(self, now: int) -> None:
173173

174174
def call(self, now: int) -> None:
175175
"""Create the task."""
176+
self.next_run = now + self.every
176177
if self.task and not self.task.done():
177178
self.stat_busy_count += 1
178179
return
179-
self.next_run = now + self.every
180180
self.task = asyncio.create_task(self.wrap_callback(now))
181181

182182

0 commit comments

Comments
 (0)