From b727eaab80b54f06ed2619a5fd08d0ffa3130c5d Mon Sep 17 00:00:00 2001 From: LKuemmel Date: Tue, 6 May 2025 17:33:09 +0200 Subject: [PATCH] update to new evcc api call --- packages/modules/vehicles/evcc/api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/modules/vehicles/evcc/api.py b/packages/modules/vehicles/evcc/api.py index 3cb4e7727a..310e6e86c7 100644 --- a/packages/modules/vehicles/evcc/api.py +++ b/packages/modules/vehicles/evcc/api.py @@ -34,14 +34,15 @@ def create_vehicle(config: EVCCVehicleSocConfiguration, stub: vehicle_pb2_grpc.V response = stub.New( vehicle_pb2.NewRequest( token=config.sponsor_token, - type=config.vehicle_type, + type="template", + template=config.vehicle_type, config=cast(Mapping[str, str], { 'User': config.user_id, 'Password': config.password, 'VIN': config.VIN # VIN is optional, but must not be None }) - ) ) + ) return response.vehicle_id