From 4a91174f5bf0a32260cc8018a2e95773abb541b1 Mon Sep 17 00:00:00 2001 From: ikaratass <89934937+ikaratass@users.noreply.github.com> Date: Wed, 27 Mar 2024 19:26:10 +0000 Subject: [PATCH] code quality --- iso15118/secc/states/iso15118_20_states.py | 6 ++---- iso15118/secc/states/iso15118_2_states.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/iso15118/secc/states/iso15118_20_states.py b/iso15118/secc/states/iso15118_20_states.py index f86b3e5c..9aa829a3 100644 --- a/iso15118/secc/states/iso15118_20_states.py +++ b/iso15118/secc/states/iso15118_20_states.py @@ -10,7 +10,7 @@ from iso15118.secc.comm_session_handler import SECCCommunicationSession from iso15118.secc.controller.common import UnknownEnergyService -from iso15118.secc.controller.evse_data import EVSEDataContext, CurrentType +from iso15118.secc.controller.evse_data import CurrentType, EVSEDataContext from iso15118.secc.states.secc_state import StateSECC from iso15118.shared.exi_codec import EXI from iso15118.shared.messages.app_protocol import ( @@ -1348,9 +1348,7 @@ async def process_message( self.charge_parameter_valid(ac_cpd_req.ac_params) ev_data_context = self.comm_session.evse_controller.ev_data_context ev_data_context.update_ac_charge_parameters_v20(energy_service, ac_cpd_req) - evse_data_context = ( - self.comm_session.evse_controller.evse_data_context - ) + evse_data_context = self.comm_session.evse_controller.evse_data_context evse_data_context.current_type = CurrentType.AC except UnknownEnergyService: self.stop_state_machine( diff --git a/iso15118/secc/states/iso15118_2_states.py b/iso15118/secc/states/iso15118_2_states.py index 2e2f2083..6a9ff61b 100644 --- a/iso15118/secc/states/iso15118_2_states.py +++ b/iso15118/secc/states/iso15118_2_states.py @@ -11,8 +11,8 @@ from iso15118.secc.comm_session_handler import SECCCommunicationSession from iso15118.secc.controller.ev_data import EVSessionContext15118 -from iso15118.secc.controller.interface import AuthorizationResponse from iso15118.secc.controller.evse_data import CurrentType +from iso15118.secc.controller.interface import AuthorizationResponse from iso15118.secc.states.secc_state import StateSECC from iso15118.shared.exceptions import ( CertAttributeError,