diff --git a/src/Services/TeslaGatewayMetricsService.cs b/src/Services/TeslaGatewayMetricsService.cs index c490590..d6ee149 100644 --- a/src/Services/TeslaGatewayMetricsService.cs +++ b/src/Services/TeslaGatewayMetricsService.cs @@ -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;