Beta version
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s
This commit is contained in:
16
vehicle.go
16
vehicle.go
@ -759,13 +759,13 @@ func (v *Vehicle) selectVehicle() {
|
||||
// getAPIGen
|
||||
// Get the Subaru telematics API generation of a specified VIN
|
||||
func (v *Vehicle) getAPIGen() string {
|
||||
if contains(v.Features, FEATURE_G1_TELEMATICS) {
|
||||
if slices.Contains(v.Features, FEATURE_G1_TELEMATICS) {
|
||||
return "g1"
|
||||
}
|
||||
if contains(v.Features, FEATURE_G2_TELEMATICS) {
|
||||
if slices.Contains(v.Features, FEATURE_G2_TELEMATICS) {
|
||||
return "g2"
|
||||
}
|
||||
if contains(v.Features, FEATURE_G3_TELEMATICS) {
|
||||
if slices.Contains(v.Features, FEATURE_G3_TELEMATICS) {
|
||||
return "g3"
|
||||
}
|
||||
return "unknown"
|
||||
@ -780,13 +780,13 @@ func (v *Vehicle) getAPIGen() string {
|
||||
// isEV .
|
||||
// Get whether the specified car is an Electric Vehicle.
|
||||
func (v *Vehicle) isEV() bool {
|
||||
return contains(v.Features, FEATURE_PHEV)
|
||||
return slices.Contains(v.Features, FEATURE_PHEV)
|
||||
}
|
||||
|
||||
// getRemoteOptionsStatus .
|
||||
// Get whether the specified VIN has remote locks/horn/light service available
|
||||
func (v *Vehicle) getRemoteOptionsStatus() bool {
|
||||
return contains(v.SubscriptionFeatures, FEATURE_REMOTE)
|
||||
return slices.Contains(v.SubscriptionFeatures, FEATURE_REMOTE)
|
||||
}
|
||||
|
||||
// parseDoor .
|
||||
@ -927,19 +927,19 @@ func (v *Vehicle) parseTire(prefix, suffix, name string, value any) {
|
||||
// // getRemoteStartStatus .
|
||||
// // Get whether the specified VIN has remote engine start service available.
|
||||
// func (v *Vehicle) getRemoteStartStatus() bool {
|
||||
// return contains(v.Features, FEATURE_REMOTE_START)
|
||||
// return slices.Contains(v.Features, FEATURE_REMOTE_START)
|
||||
// }
|
||||
|
||||
// // getSafetyStatus .
|
||||
// // Get whether the specified VIN is has an active Starlink Safety Plus service plan.
|
||||
// func (v *Vehicle) getSafetyStatus() bool {
|
||||
// return contains(v.SubscriptionFeatures, FEATURE_SAFETY)
|
||||
// return slices.Contains(v.SubscriptionFeatures, FEATURE_SAFETY)
|
||||
// }
|
||||
|
||||
// // getSubscriptionStatus .
|
||||
// // Get whether the specified VIN has an active service plan.
|
||||
// func (v *Vehicle) getSubscriptionStatus() bool {
|
||||
// return contains(v.SubscriptionFeatures, FEATURE_ACTIVE)
|
||||
// return slices.Contains(v.SubscriptionFeatures, FEATURE_ACTIVE)
|
||||
// }
|
||||
|
||||
// // getVehicleName .
|
||||
|
Reference in New Issue
Block a user