PSA: allow float soc
This commit is contained in:
parent
3e23dd12e9
commit
61039b8db9
2 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ func (v *Provider) Soc() (float64, error) {
|
|||
continue
|
||||
}
|
||||
|
||||
return float64(e.Level), nil
|
||||
return e.Level, nil
|
||||
}
|
||||
|
||||
err = api.ErrNotAvailable
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue