-
Notifications
You must be signed in to change notification settings - Fork 22
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
Update list of tags and move to enum #87
Conversation
Thank you @eikowagenknecht! 🥇 |
Ooops, I intended to do so. The other PR should be fine, but this one needs to be rebased against master. On it. |
Done. I also fixed the flake8 errors. |
Signed-off-by: Eiko Wagenknecht <[email protected]>
Fixed the remaining two flake8 errors.. |
Ran isort and black as well now... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add Args
and Returns
to the docstring.
@eikowagenknecht do you potentially already created a script how you generated the |
|
Sure, I commented and added the script. I put it into a newly created tools directory, if you want it somewhere else I'm happy to move it. |
All done. |
Seems like flake8-docstrings is used as well in the GitHub workflow. I added that requirement to the developer section of the readme. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are getting close to merging this! 💯
Thank you for sticking to it! 🥇
Congratulations :) |
Implements #85
Moving to Enum instead of loose string references has the advantage that now only existing tags can be used and the IDE picks up on errors.
Unfortunately since "BAT_REQ_MEASURED_RESISTANCE" (0x03000130) and "BAT_RUN_MEASURED_RESISTANCE" (0x03800131) don't exist any more, I had to remove those two from the output.
But I think this is a good thing because those two were wrong anyways (see values in screenshots):
I can add those avg30s values to the battery results if you want. Currently those only exist on DCB level.