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

This commit is contained in:
2025-05-31 21:15:04 -04:00
parent d66d529fa9
commit 2542993b9f
3 changed files with 31 additions and 15 deletions

View File

@ -8,8 +8,6 @@ import (
"strconv"
"strings"
"time"
"github.com/Jeffail/gabs/v2"
)
var parts = map[string]map[string][]string{
@ -961,12 +959,19 @@ func (v *Vehicle) GetVehicleHealth() {
}
if r.Success {
_, err := gabs.ParseJSON(resp)
var vh VehicleHealth
err = json.Unmarshal(r.Data, &vh)
if err != nil {
v.client.logger.Error("error while parsing json", "request", "GetVehicleHealth", "error", err.Error())
}
// TODO:
v.client.logger.Debug("http request output", "request", "GetVehicleHealth", "body", resp)
// TODO: Loop over all the Vehicle Health Items
} else {
v.client.logger.Error("active STARLINK Security Plus subscription required")
}
}
// // GetClimateSettings .