Skip to content

Commit

Permalink
&battery_level: Return {usable_battery_level}
Browse files Browse the repository at this point in the history
 - that is what the phone app shows
  • Loading branch information
jankratochvil committed Oct 19, 2023
1 parent c29c5b8 commit 5d53a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Tesla/Vehicle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ sub speed {
# Charge State Methods

sub battery_level {
return $_[0]->data->{charge_state}{battery_level};
return $_[0]->data->{charge_state}{usable_battery_level};
}
sub charge_amps {
return $_[0]->data->{charge_state}{charge_amps};
Expand Down

0 comments on commit 5d53a4b

Please sign in to comment.