Skip to content

Commit

Permalink
feat(FleetTelemetryService): do not connect to notTested and NoConfig…
Browse files Browse the repository at this point in the history
…ured Fleet Api cars
  • Loading branch information
pkuehnel committed Dec 7, 2024
1 parent 35caced commit 03b745d
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 03b745d

Please sign in to comment.