PSA: allow float soc

This commit is contained in:
andig 2024-01-24 08:19:53 +01:00
parent 3e23dd12e9
commit 61039b8db9
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ func (v *Provider) Soc() (float64, error) {
continue
}
return float64(e.Level), nil
return e.Level, nil
}
err = api.ErrNotAvailable

View file

@ -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