From 37d7868b0d3263ed10538fe22b6fdfd6c10022d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20K=C3=BChnel?= Date: Thu, 16 Jan 2025 22:52:25 +0100 Subject: [PATCH] fix(TeslaFleetApiService): only block non fleet Api compatible commands on fleet api --- TeslaSolarCharger/Server/Services/TeslaFleetApiService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TeslaSolarCharger/Server/Services/TeslaFleetApiService.cs b/TeslaSolarCharger/Server/Services/TeslaFleetApiService.cs index 4fa58b2ef..b8dc1b1ef 100644 --- a/TeslaSolarCharger/Server/Services/TeslaFleetApiService.cs +++ b/TeslaSolarCharger/Server/Services/TeslaFleetApiService.cs @@ -930,7 +930,7 @@ await errorHandlingService.HandleError(nameof(TeslaFleetApiService), nameof(Send } } - if (!await backendApiService.IsFleetApiLicensed(car.Vin, true)) + if (fleetApiRequest.BleCompatible && (!await backendApiService.IsFleetApiLicensed(car.Vin, true))) { await errorHandlingService.HandleError(nameof(TeslaFleetApiService), nameof(SendCommandToTeslaApi), $"Fleet API not licensed for car {car.Vin}", "Can not send Fleet API commands to car as Fleet API is not licensed",