Skip to content

Commit

Permalink
Merge pull request #102 from pkuehnel/fix/updatingState
Browse files Browse the repository at this point in the history
fix(CarState): Add updating car state
  • Loading branch information
pkuehnel authored Apr 25, 2022
2 parents 6499033 + 984ed3c commit d0d29c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SmartTeslaAmpSetter/Server/MqttHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions SmartTeslaAmpSetter/Shared/Enums/CarState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ public enum CarState
Charging,
Suspended,
Driving,
Updating,
Unknown,
}

0 comments on commit d0d29c8

Please sign in to comment.