Skip to content

Commit

Permalink
Update TeslaGatewayMetricsService.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
DrEsteban authored Dec 18, 2024
1 parent 495147c commit 12242fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/TeslaGatewayMetricsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public override async Task CollectMetricsAsync(CollectorRegistry collectorRegist

if (string.IsNullOrWhiteSpace(this._cachedLoginResponse?.Token) ||
//await this.PingTestAsync(cancellationToken) is HttpStatusCode.Unauthorized or HttpStatusCode.Forbidden)
await this.PingTestAsync(cancellationToken) != HttpStatusCode.Ok)
await this.PingTestAsync(cancellationToken) != HttpStatusCode.OK)
{
// Cache an auth token
loginCached = false;
Expand Down

0 comments on commit 12242fe

Please sign in to comment.