-
Notifications
You must be signed in to change notification settings - Fork 329
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
Wrong dataclass AuthorizationData (v1.6) #412
Labels
bug
Something isn't working
Comments
I concur, this makes the removal of a badge in the local auth list by an incremental update impossible : it needs the id_tag_info not to be present. Correction, not impossible : you can send a SendLocalList.req whose AuthorizationData list do not all contains an idTagInfo - you just have to make sure to initialize idTagInfo to None. |
Jared-Newell-Mobility
added
bug
Something isn't working
and removed
question
Further information is requested
labels
Sep 8, 2023
Nice catch id_tag_info should have the default of None |
Jared-Newell-Mobility
added a commit
that referenced
this issue
Oct 11, 2023
Jared-Newell-Mobility
added a commit
that referenced
this issue
Oct 11, 2023
ajmirsky
pushed a commit
to ajmirsky/ocpp
that referenced
this issue
Nov 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on the documentation on section "7.1. AuthorizationData", this class has the idTagInfo field Optional
In file ocpp.v16.datatypes.py, the field is actually optional but the default is missing
current version (0.16.0)
In my opinion, it should be
Without that correction, the following code crashes
with
In the meantime, the only fix I have found at application level is
an no crashes occurs.
Best regards
Davide
The text was updated successfully, but these errors were encountered: