Skip to content

Commit

Permalink
rename generic_call to raw_call
Browse files Browse the repository at this point in the history
  • Loading branch information
reinierl committed Oct 16, 2024
1 parent b6e1db5 commit 51224cb
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 @@ -404,7 +404,7 @@ async def call(
if "Payload" in payload.__class__.__name__:
action_name = payload.__class__.__name__[:-7]

response = await self.generic_call(
response = await self.raw_call(
action=action_name,
payload_json=camel_case_payload,
suppress=suppress,
Expand All @@ -424,7 +424,7 @@ async def call(
cls = getattr(self._call_result, payload.__class__.__name__) # noqa
return cls(**snake_case_payload)

async def generic_call(self, action, payload_json, suppress=True, unique_id=None,skip_schema_validation=False):
async def raw_call(self, action, payload_json, suppress=True, unique_id=None,skip_schema_validation=False):
"""
Send Call message to client and return payload of response.
Expand Down

0 comments on commit 51224cb

Please sign in to comment.