DurgNomis-drol / mytoyota

Python client for Toyota Connected Services API
MIT License
80 stars 33 forks source link

Feature: Add helper functions for current timeframe summaries #290

Closed CM000n closed 10 months ago

CM000n commented 10 months ago

I took @GitOldGrumpy 's idea from https://github.com/DurgNomis-drol/mytoyota/pull/265 and added some helper functions that allow you to directly get the summary for the current day, week, month and year.

codecov[bot] commented 10 months ago

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (66ad51e) 72.36% compared to head (32c6509) 71.81%. Report is 1 commits behind head on master.

Files Patch % Lines
mytoyota/models/vehicle.py 25.00% 12 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #290 +/- ## ========================================== - Coverage 72.36% 71.81% -0.56% ========================================== Files 28 28 Lines 1357 1373 +16 ========================================== + Hits 982 986 +4 - Misses 375 387 +12 ``` | [Flag](https://app.codecov.io/gh/DurgNomis-drol/mytoyota/pull/290/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Hansen) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/DurgNomis-drol/mytoyota/pull/290/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Hansen) | `71.81% <25.00%> (-0.56%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Hansen#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.