func (v *Provider) FinishTime() (time.Time, error) {
	res, err := v.statusG()
	if res, ok := res.(Status); err == nil && ok {
		if len(res.Energy) == 1 {
			e := res.Energy[0]
			return e.UpdatedAt.Add(e.Charging.RemainingTime.Duration), nil
		}

		err = api.ErrNotAvailable
	}

	return time.Time{}, err
}
// FinishTime implements the api.VehicleFinishTimer interface
FinishTime implements the api.VehicleFinishTimer interface
// FinishTime implements the api . VehicleFinishTimer interface
func (v *Provider) FinishTime() (time.Time, error) {
	res, err := v.statusG()
	if res, ok := res.(Status); err == nil && ok {
		if len(res.Energy) == 1 {
			e := res.Energy[0]
			return e.UpdatedAt.Add(e.Charging.RemainingTime.Duration), nil
		}
		err = api.ErrNotAvailable
	}
	return time.Time{}, err
}
func ( v * Provider ) FinishTime ( ) ( time . Time , error ) { res , err := v . statusG ( ) if res , ok := res . ( Status ) ; err == nil && ok { if len ( res . Energy ) == 1 { e := res . Energy [ 0 ] return e . UpdatedAt . Add ( e . Charging . RemainingTime . Duration ) , nil } err = api . ErrNotAvailable } return time . Time { } , err }
FinishTime implements the api.VehicleFinishTimer interface
FinishTime implements the api . VehicleFinishTimer interface