Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shalinnijel2 committed Mar 13, 2024
1 parent bf52b35 commit 6483ef0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions iso15118/secc/states/iso15118_20_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,11 @@ async def process_message(
control_mode, schedule_exchange_req
)

# As per Table 49 of ISO15118-20 spec: one of scheduled_params/dynamic_params is
# required even if EVSEProcessing is ongoing. The SECC shall only omit the
# parameter 'ScheduleList' in case EVSEProcessing is set to 'Ongoing'.
# However, the schema file doesn't permit this as minOccurs = 0 is not set in
# schema here: https://github.com/SwitchEV/iso15118/blob/769eddb0cb780db629b4c736de270d381516abd1/iso15118/shared/schemas/iso15118_20/V2G_CI_CommonMessages.xsd#L467-L466 # noqa
params = await self.comm_session.evse_controller.get_schedule_exchange_params(
self.comm_session.selected_energy_service,
control_mode,
Expand Down

0 comments on commit 6483ef0

Please sign in to comment.