Added trouble detection
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 23s

This commit is contained in:
2025-06-05 16:56:29 -04:00
parent c27e5adfe0
commit a42ed54f38

View File

@ -700,7 +700,10 @@ func (v *Vehicle) GetVehicleHealth() {
// v.client.logger.Debug("vehicle health item", "id", i, "item", vhi) // v.client.logger.Debug("vehicle health item", "id", i, "item", vhi)
if vhi.IsTrouble { if vhi.IsTrouble {
if _, ok := troubles[vhi.FeatureCode]; ok { if _, ok := troubles[vhi.FeatureCode]; ok {
// TODO: Added a troble to the trouble list t := Trouble{
Description: troubles[vhi.FeatureCode],
}
v.Troubles[vhi.FeatureCode] = t
v.client.logger.Debug("found troubled vehicle health item", "id", i, "item", vhi.FeatureCode, "description", troubles[vhi.FeatureCode]) v.client.logger.Debug("found troubled vehicle health item", "id", i, "item", vhi.FeatureCode, "description", troubles[vhi.FeatureCode])
} }
} }