diff --git a/iso15118/evcc/states/iso15118_20_states.py b/iso15118/evcc/states/iso15118_20_states.py index 8ecf5aa5..0bebe590 100644 --- a/iso15118/evcc/states/iso15118_20_states.py +++ b/iso15118/evcc/states/iso15118_20_states.py @@ -1086,7 +1086,7 @@ async def create_new_power_delivery_req( # Information from EV to show if charging or discharging is planned bpt_channel_selection = None - if self.comm_session.selected_energy_service in ( + if self.comm_session.selected_energy_service.service in ( ServiceV20.AC_BPT, ServiceV20.DC_BPT, ): @@ -1567,7 +1567,7 @@ async def build_power_delivery_req(self): # Information from EV to show if charging or discharging is planned bpt_channel_selection = None - if self.comm_session.selected_energy_service in ( + if self.comm_session.selected_energy_service.service in ( ServiceV20.AC_BPT, ServiceV20.DC_BPT, ):