robinostlund / volkswagencarnet

A python library for volkswagen carnet
GNU General Public License v3.0
65 stars 37 forks source link

Rate limit #187

Closed milkboy closed 2 years ago

milkboy commented 2 years ago

Add client side rate limiting, so we don't accidentally spam the backend and end up with a non-working integrations for some time. This will slow down refreshing data a bit, but should be manageable

codecov-commenter commented 2 years ago

Codecov Report

Merging #187 (eea4cc2) into master (a1543e9) will increase coverage by 0.42%. The diff coverage is 82.00%.

@@            Coverage Diff             @@
##           master     #187      +/-   ##
==========================================
+ Coverage   42.66%   43.08%   +0.42%     
==========================================
  Files           7        7              
  Lines        3061     3068       +7     
  Branches      496      497       +1     
==========================================
+ Hits         1306     1322      +16     
+ Misses       1684     1670      -14     
- Partials       71       76       +5     
Flag Coverage Δ
unittests 43.08% <82.00%> (+0.42%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
volkswagencarnet/vw_timer.py 76.12% <ø> (ø)
volkswagencarnet/vw_connection.py 14.12% <58.82%> (+1.37%) :arrow_up:
volkswagencarnet/vw_vehicle.py 49.22% <93.93%> (+0.17%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a1543e9...eea4cc2. Read the comment docs.