DurgNomis-drol / mytoyota

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

Inconsistency in statistics summaries #281

Closed CM000n closed 10 months ago

CM000n commented 10 months ago

I am currently in the process of adapting the Home Assistant integration to the new mytoyota version. I noticed that the statistics summaries are inconsistent. According to the current date (08 January 2024), the monthly and annual statistics should be the same. However, for the same period from 01.01 to 08.01.2024 I get different values for month (e.g. 90km distance) and year (e.g. 179km distance).

Screenshot_20240108-172537

CM000n commented 10 months ago

Fyi @GitOldGrumpy :wink:

GitOldGrumpy commented 10 months ago

Ill take a look later, if I can find a few spare minutes.

GitOldGrumpy commented 10 months ago

The code always expects there to be multiple months and it doesn't work anyway as the first month is always added twice.