From 6f904594c8b00bee007a0f6855536fc10a1ffcf6 Mon Sep 17 00:00:00 2001 From: Garry Blair Date: Tue, 26 Mar 2024 10:12:36 +0000 Subject: [PATCH] service fix --- iso15118/evcc/states/iso15118_20_states.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, ):