Skip to content

Commit

Permalink
Merge pull request #33 from at0dd/fix_trip_charging
Browse files Browse the repository at this point in the history
Fix trip charging nullable
  • Loading branch information
at0dd committed Mar 24, 2022
2 parents 4df5d4f + e99f09b commit 8293f55
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/TeslaAPI.sln
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ Global
$2.scope = text/x-csharp
$0.CSharpFormattingPolicy = $3
$3.scope = text/x-csharp
version = 1.0.6
version = 1.0.7
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion src/TeslaAPI/Models/ChargeState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public class ChargeState
public long Timestamp { get; set; }

[JsonProperty("trip_charging")]
public bool TripCharging { get; set; }
public bool? TripCharging { get; set; }

/// <summary>
/// Gets or sets the usable battery percentage.
Expand Down
4 changes: 2 additions & 2 deletions src/TeslaAPI/TeslaAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>net5.0;netstandard2.1</TargetFrameworks>
<PackOnBuild>true</PackOnBuild>
<PackageId>Tesla-API</PackageId>
<PackageVersion>1.0.6</PackageVersion>
<PackageVersion>1.0.7</PackageVersion>
<Authors>Alex Todd</Authors>
<NeutralLanguage>en-US</NeutralLanguage>
<License>https://github.com/at0dd/tesla-api/blob/main/LICENSE</License>
Expand All @@ -14,7 +14,7 @@
<Title>Tesla API</Title>
<Description>An unofficial .NET Core implementation of the Tesla API.</Description>
<RepositoryUrl>https://github.com/at0dd/tesla-api</RepositoryUrl>
<ReleaseVersion>1.0.6</ReleaseVersion>
<ReleaseVersion>1.0.7</ReleaseVersion>
<PackageLicenseUrl>https://raw.githubusercontent.com/at0dd/tesla-api/main/LICENSE</PackageLicenseUrl>
</PropertyGroup>

Expand Down

0 comments on commit 8293f55

Please sign in to comment.