Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix trip charging nullable #33

Merged
merged 1 commit into from
Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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