From 4208ad1ebd6019599a6b61fcdf7512a00cecda0b Mon Sep 17 00:00:00 2001 From: Reinier Lamers Date: Wed, 14 Feb 2024 11:49:16 -0700 Subject: [PATCH] fix formatting in charge_point.py --- ocpp/charge_point.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ocpp/charge_point.py b/ocpp/charge_point.py index 9429322d6..4bbecdc66 100644 --- a/ocpp/charge_point.py +++ b/ocpp/charge_point.py @@ -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) @@ -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)