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

		err = api.ErrNotAvailable
	}

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