Skip to content

Commit

Permalink
tesla: Increased retry interval; increased initial delayed info delay
Browse files Browse the repository at this point in the history
  • Loading branch information
eras committed Nov 20, 2023
1 parent 5624263 commit 40225ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions teslabot/tesla.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ async def _wake(self, context: CommandContext, vehicle: teslapy.Vehicle) -> None
async def report() -> None:
await self.control.send_message(context.to_message_context(), f"Waking up {vehicle['display_name']}")
try:
await call_with_delay_info(delay_sec=2.0,
await call_with_delay_info(delay_sec=5.0,
report=report,
task=to_async(vehicle.sync_wake_up))
except teslapy.VehicleError as exn:
Expand Down Expand Up @@ -739,7 +739,7 @@ async def _retry(self,
error = exn
finally:
logger.debug(f"Retry round complete")
await asyncio.sleep(pow(1.15, num_retries) * 2)
await asyncio.sleep(5 + pow(1.15, num_retries) * 2)
num_retries += 1
if num_retries > 0:
logger.debug(f"Number of retries: {num_retries}")
Expand Down

0 comments on commit 40225ae

Please sign in to comment.