Skip to content

Commit

Permalink
fix formatting in charge_point.py
Browse files Browse the repository at this point in the history
  • Loading branch information
reinierl committed Feb 14, 2024
1 parent 950ac8a commit 4208ad1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ocpp/charge_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ async def call(self, payload, suppress=True, unique_id=None):
action=payload.__class__.__name__[:-7],
payload_json=camel_case_payload,
suppress=suppress,
unique_id=unique_id
unique_id=unique_id,
)

snake_case_payload = camel_to_snake_case(response.payload)
Expand Down Expand Up @@ -350,9 +350,7 @@ async def generic_call(self, action, payload_json, suppress=True, unique_id=None
)

call = Call(
unique_id=unique_id,
action=action,
payload=remove_nones(payload_json)
unique_id=unique_id, action=action, payload=remove_nones(payload_json)
)

validate_payload(call, self._ocpp_version)
Expand Down

0 comments on commit 4208ad1

Please sign in to comment.