mobilityhouse / ocpp

Python implementation of the Open Charge Point Protocol (OCPP).
MIT License
766 stars 298 forks source link

Update tests to use Call and CallResult without the suffix Payload #595

Closed Jared-Newell-Mobility closed 7 months ago

Jared-Newell-Mobility commented 7 months ago

See issue https://github.com/mobilityhouse/ocpp/issues/593

Also major bug corrected in Master branch below:

https://github.com/mobilityhouse/ocpp/blob/ae02ede445ea56375505d21bd498a88fce937862/ocpp/charge_point.py#L314-L318

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