func (v *Provider) SoC() (float64, error) {
	res, err := v.statusG()
	if res, ok := res.(Status); err == nil && ok {
		for _, e := range res.Energy {
			return float64(e.Level), nil
		}

		err = api.ErrNotAvailable
	}

	return 0, err
}
// SoC implements the api.Vehicle interface
SoC implements the api.Vehicle interface
// SoC implements the api . Vehicle interface
func (v *Provider) SoC() (float64, error) {
	res, err := v.statusG()
	if res, ok := res.(Status); err == nil && ok {
		for _, e := range res.Energy {
			return float64(e.Level), nil
		}
		err = api.ErrNotAvailable
	}
	return 0, err
}
func ( v * Provider ) SoC ( ) ( float64 , error ) { res , err := v . statusG ( ) if res , ok := res . ( Status ) ; err == nil && ok { for _ , e := range res . Energy { return float64 ( e . Level ) , nil } err = api . ErrNotAvailable } return 0 , err }
SoC implements the api.Vehicle interface
SoC implements the api . Vehicle interface