Skip to content

Commit

Permalink
serialize_as_dict()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared-Newell-Mobility committed Feb 8, 2024
1 parent b3c62d3 commit d160959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocpp/charge_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ async def _handle_call(self, msg):

return

temp_response_payload = asdict(response)
temp_response_payload = serialize_as_dict(response)

# Remove nones ensures that we strip out optional arguments
# which were not set and have a default value of None
Expand Down Expand Up @@ -384,7 +384,7 @@ async def call(self, payload, suppress=True, unique_id=None):
CallError.
"""
camel_case_payload = snake_to_camel_case(asdict(payload))
camel_case_payload = snake_to_camel_case(serialize_as_dict(payload))

unique_id = (
unique_id if unique_id is not None else str(self._unique_id_generator())
Expand Down

0 comments on commit d160959

Please sign in to comment.