use usable soc to match display and tesla app (#2738)
This commit is contained in:
parent
560cdeb0d7
commit
735e68e5b0
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ func (v *Tesla) SoC() (float64, error) {
|
|||
res, err := v.chargeStateG()
|
||||
|
||||
if res, ok := res.(*tesla.ChargeState); err == nil && ok {
|
||||
return float64(res.BatteryLevel), nil
|
||||
return float64(res.UsableBatteryLevel), nil
|
||||
}
|
||||
|
||||
return 0, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue