raman325 / pytomorrowio

Async Python client for Tomorrow.io API
MIT License
2 stars 3 forks source link

Allow caller to specify additional params #20

Closed raman325 closed 2 years ago

raman325 commented 2 years ago

This feature allows a caller to specify additional params, and can replace existing commands. This could be used to share a single TomorrowioV4 class instance for multiple locations. In HA, we can create a single coordinator per API key, and then let the lib do the appropriate rate limiting.

codecov-commenter commented 2 years ago

Codecov Report

Merging #20 (7458f07) into master (267fc61) will increase coverage by 2.95%. The diff coverage is 89.24%.

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
+ Coverage   85.18%   88.13%   +2.95%     
==========================================
  Files           7        7              
  Lines         324      354      +30     
==========================================
+ Hits          276      312      +36     
+ Misses         48       42       -6     
Impacted Files Coverage Δ
setup.py 0.00% <ø> (ø)
pytomorrowio/pytomorrowio.py 88.77% <88.63%> (+5.34%) :arrow_up:
pytomorrowio/__init__.py 100.00% <100.00%> (ø)
pytomorrowio/const.py 92.17% <100.00%> (+0.20%) :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 00653f4...7458f07. Read the comment docs.