Skip to content

Commit

Permalink
Merge pull request #1681 from pkuehnel/fix/doNotAllowVariousFleetApiS…
Browse files Browse the repository at this point in the history
…tatesOnTelemetryConfiguration

feat(FleetTelemetryService): do not connect to notTested and NoConfigured Fleet Api cars
  • Loading branch information
pkuehnel authored Dec 7, 2024
2 parents 35caced + 03b745d commit 13595d2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public async Task ReconnectWebSocketsForEnabledCars()
var cars = await context.Cars
.Where(c => c.UseFleetTelemetry
&& (c.ShouldBeManaged == true)
&& (c.TeslaFleetApiState != TeslaCarFleetApiState.NotWorking))
&& (c.TeslaFleetApiState != TeslaCarFleetApiState.NotWorking)
&& (c.TeslaFleetApiState != TeslaCarFleetApiState.OpenedLinkButNotTested)
&& (c.TeslaFleetApiState != TeslaCarFleetApiState.NotConfigured))
.Select(c => new { c.Vin, c.UseFleetTelemetryForLocationData, })
.ToListAsync();
var bytesToSend = Encoding.UTF8.GetBytes("Heartbeat");
Expand Down

0 comments on commit 13595d2

Please sign in to comment.