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:48:53 -04:00
parent e25b6a67f3
commit 934f1259d0
4 changed files with 31 additions and 30 deletions

View File

@ -151,8 +151,8 @@ type Tire struct {
SubPosition string
Pressure int
PressurePsi int
Status string
Updated time.Time
// Status string
}
// Warning .
@ -677,7 +677,7 @@ func (v *Vehicle) GetVehicleCondition() {
// for i := 0; i < val.NumField(); i++ {
for i := range val.NumField() {
v.client.logger.Debug("vehicle condition >> parsing a car part", "field", typeOfS.Field(i).Name, "value", val.Field(i).Interface(), "type", val.Field(i).Type())
// v.client.logger.Debug("vehicle condition >> parsing a car part", "field", typeOfS.Field(i).Name, "value", val.Field(i).Interface(), "type", val.Field(i).Type())
if slices.Contains(badValues, val.Field(i).Interface()) {
continue
} else {
@ -721,7 +721,8 @@ func (v *Vehicle) GetVehicleHealth() {
// v.client.logger.Debug("vehicle health item", "id", i, "item", vhi)
if vhi.IsTrouble {
if _, ok := troubles[vhi.FeatureCode]; ok {
v.client.logger.Debug("found troubled vehicle health item", "id", i, "item", vhi)
// TODO: Added a troble to the trouble list
v.client.logger.Debug("found troubled vehicle health item", "id", i, "item", vhi.FeatureCode, "description", troubles[vhi.FeatureCode])
}
}
}
@ -821,7 +822,7 @@ func (v *Vehicle) parseLock(prefix, suffix, name string, value any) {
pos := strings.TrimPrefix(name, prefix)
pos = strings.TrimSuffix(pos, suffix)
submatchall := re.FindAllString(pos, -1)
v.client.logger.Debug("door lock status", "key", name, "value", value, "number", len(submatchall))
// v.client.logger.Debug("door lock status", "key", name, "value", value, "number", len(submatchall))
if d, ok := v.Doors[pos]; ok {
d.Lock = value.(string)