Skip to content

Commit

Permalink
PSA: allow float soc
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jan 24, 2024
1 parent 3e23dd1 commit 61039b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vehicle/psa/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (v *Provider) Soc() (float64, error) {
continue
}

return float64(e.Level), nil
return e.Level, nil
}

err = api.ErrNotAvailable
Expand Down
2 changes: 1 addition & 1 deletion vehicle/psa/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type Status struct {
type Energy struct {
UpdatedAt time.Time
Type string // Fuel/Electric
Level int
Level float64
Autonomy int
Charging struct {
Plugged bool
Expand Down

0 comments on commit 61039b8

Please sign in to comment.