From 984ed3cd9328b6844bba2cc856934acfd9b20e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20K=C3=BChnel?= Date: Tue, 26 Apr 2022 00:35:35 +0200 Subject: [PATCH] fix(CarState): Add updating car state --- SmartTeslaAmpSetter/Server/MqttHelper.cs | 3 +++ SmartTeslaAmpSetter/Shared/Enums/CarState.cs | 1 + 2 files changed, 4 insertions(+) diff --git a/SmartTeslaAmpSetter/Server/MqttHelper.cs b/SmartTeslaAmpSetter/Server/MqttHelper.cs index 50e491a51..b77cbf2c5 100644 --- a/SmartTeslaAmpSetter/Server/MqttHelper.cs +++ b/SmartTeslaAmpSetter/Server/MqttHelper.cs @@ -236,6 +236,9 @@ private void UpdateCar(TeslaMateValue value) case "driving": car.CarState.State = CarState.Driving; break; + case "updating": + car.CarState.State = CarState.Updating; + break; default: _logger.LogWarning("Unknown car state deteckted: {carState}", value.Value); car.CarState.State = CarState.Unknown; diff --git a/SmartTeslaAmpSetter/Shared/Enums/CarState.cs b/SmartTeslaAmpSetter/Shared/Enums/CarState.cs index 20e57e4a5..28dfac9b4 100644 --- a/SmartTeslaAmpSetter/Shared/Enums/CarState.cs +++ b/SmartTeslaAmpSetter/Shared/Enums/CarState.cs @@ -8,5 +8,6 @@ public enum CarState Charging, Suspended, Driving, + Updating, Unknown, } \ No newline at end of file