Skip to content

Commit 06e598e

Browse files
feat: Remove deprecated dataclass (#699)
### Changes included in this PR #### Breaking changes: - Removed all the deprecated dataclasses from `call.py` and `call_result.py` for OCPP 1.6 and OCPP 2.0.1. - Removed logic in `charge_point.py` where the deprecated dataclasses were being handled. ### Impact - User's need to update the codebase and migrate from old dataclass nomenclature to the new one: - The old dataclasses had `Payload` at the end of the class name. - The new dataclasses don't have the `Payload` at the end of the class name. ### Checklist 1. [x] Does your submission pass the existing tests? 2. [ ] Are there new tests that cover these additions/changes? 3. [x] Have you linted your code locally before submission?
1 parent 7e6136b commit 06e598e

File tree

5 files changed

+0
-2701
lines changed

5 files changed

+0
-2701
lines changed

ocpp/charge_point.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,6 @@ async def call(
403403
)
404404

405405
action_name = payload.__class__.__name__
406-
# Due to deprecated call and callresults, remove in the future.
407-
if "Payload" in payload.__class__.__name__:
408-
action_name = payload.__class__.__name__[:-7]
409406

410407
call = Call(
411408
unique_id=unique_id,

0 commit comments

Comments
 (0)