Skip to content

Conversation

lbbrhzn
Copy link
Owner

@lbbrhzn lbbrhzn commented Jul 7, 2021

I've replaced measurand names with the constants provided by ocpp.v16.enums.Measurand.
Ideally, I would like to make api.py string literal free, this will make linting much more effective.
Currently you can only detect runtime if you've make an error in one of the strings...

@lbbrhzn lbbrhzn requested a review from drc38 July 7, 2021 07:28
@github-actions
Copy link

github-actions bot commented Jul 7, 2021

🎉 HACS repository validator action summary 🎉
✅ The repository is not archived
✅ manifest.json file exist
✅ All required keys are present in manifest.json
✅ hacs.json has the 'name' key set
✅ The repository has a description
⚪ Ignored check: brands
✅ The repository has topics
✅ The repository has issues enabled
✅ This day ends with an 'y' (Wednesday)
✅ README.md exists
✅ Requirements validation
✅ Python wheels
✅ HACS load check

@lbbrhzn lbbrhzn linked an issue Jul 7, 2021 that may be closed by this pull request
@lbbrhzn lbbrhzn merged commit 9a52b80 into main Jul 8, 2021
drc38 added a commit that referenced this pull request Jul 8, 2021
ocpp: bug fix in measurands schema in #57
drc38 added a commit that referenced this pull request Jul 9, 2021
drc38 added a commit that referenced this pull request Jul 9, 2021
Revert "ocpp: bug fix in measurands schema in #57"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use constants instead of string literals for key names and measurands
2 participants