Skip to content

Commit

Permalink
Fixed error while constructing PaymentDetailsReq message.(AB#1936) (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
shalinnijel2 authored May 13, 2022
1 parent f387b5c commit 97bd01c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions iso15118/evcc/states/iso15118_2_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
Protocol,
)
from iso15118.shared.messages.iso15118_2.body import (
EMAID,
AuthorizationReq,
AuthorizationRes,
CableCheckReq,
Expand Down Expand Up @@ -76,6 +75,7 @@
RootCertificateIDList,
ServiceCategory,
ServiceID,
eMAID,
)
from iso15118.shared.messages.iso15118_2.msgdef import V2GMessage as V2GMessageV2
from iso15118.shared.messages.iso15118_2.timeouts import Timeouts
Expand Down Expand Up @@ -453,9 +453,7 @@ def process_message(
else:
try:
payment_details_req = PaymentDetailsReq(
emaid=EMAID(
value=get_cert_cn(load_cert(CertPath.CONTRACT_LEAF_DER))
),
emaid=eMAID(get_cert_cn(load_cert(CertPath.CONTRACT_LEAF_DER))),
cert_chain=load_cert_chain(
protocol=Protocol.ISO_15118_2,
leaf_path=CertPath.CONTRACT_LEAF_DER,
Expand Down

0 comments on commit 97bd01c

Please sign in to comment.