Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistency in statistics summaries #281

Closed
CM000n opened this issue Jan 8, 2024 · 3 comments · Fixed by #282
Closed

Inconsistency in statistics summaries #281

CM000n opened this issue Jan 8, 2024 · 3 comments · Fixed by #282
Assignees
Labels

Comments

@CM000n
Copy link
Collaborator

CM000n commented Jan 8, 2024

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 CM000n added the 🐛 bug label Jan 8, 2024
@CM000n
Copy link
Collaborator Author

CM000n commented Jan 8, 2024

Fyi @GitOldGrumpy 😉

@GitOldGrumpy
Copy link
Collaborator

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

@GitOldGrumpy
Copy link
Collaborator

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

@GitOldGrumpy GitOldGrumpy changed the title Incontinence in statistics summaries Inconsistency in statistics summaries Jan 8, 2024
@GitOldGrumpy GitOldGrumpy linked a pull request Jan 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants