Beta version
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s

This commit is contained in:
2025-06-04 12:58:49 -04:00
parent 934f1259d0
commit c353651287
4 changed files with 63 additions and 109 deletions

View File

@ -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 .