Skip to content

Commit

Permalink
Set carApiLastErrorTime at 429 in get_car_api()
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieB2B committed Jun 13, 2024
1 parent 28e3567 commit 3417c83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/TWCManager/Vehicle/TeslaAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,7 @@ def get_car_api(self, url, checkReady=True, provesOnline=True):
elif req.status_code == 429:
# We're explicitly being told to back off
self.errorCount = max(30, self.errorCount)
self.carapi.updateCarApiLastErrorTime()
return False, None
except json.decoder.JSONDecodeError:
pass
Expand Down

0 comments on commit 3417c83

Please sign in to comment.