Skip to content

Commit

Permalink
Merge pull request #1745 from pkuehnel/fix/bleCommandsOnFleetApi
Browse files Browse the repository at this point in the history
fix(TeslaFleetApiService): only block non fleet Api compatible commands on fleet api
  • Loading branch information
pkuehnel authored Jan 16, 2025
2 parents 59804b9 + 37d7868 commit fc4bb26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TeslaSolarCharger/Server/Services/TeslaFleetApiService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fc4bb26

Please sign in to comment.