More changes
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:
@ -218,13 +218,13 @@ type VehicleCondition struct {
|
|||||||
RemainingFuelPercent int `json:"remainingFuelPercent,string"` // "66"
|
RemainingFuelPercent int `json:"remainingFuelPercent,string"` // "66"
|
||||||
Odometer int `json:"odometer"` // 92
|
Odometer int `json:"odometer"` // 92
|
||||||
OdometerUnit string `json:"odometerUnit"` // "MILES"
|
OdometerUnit string `json:"odometerUnit"` // "MILES"
|
||||||
TirePressureFrontLeft int `json:"tirePressureFrontLeft,omitempty"` // null | 36
|
TirePressureFrontLeft float64 `json:"tirePressureFrontLeft,omitempty"` // null | 36
|
||||||
TirePressureFrontLeftUnit string `json:"tirePressureFrontLeftUnit"` // "PSI"
|
TirePressureFrontLeftUnit string `json:"tirePressureFrontLeftUnit"` // "PSI"
|
||||||
TirePressureFrontRight int `json:"tirePressureFrontRight,omitempty"` // null | 36
|
TirePressureFrontRight float64 `json:"tirePressureFrontRight,omitempty"` // null | 36
|
||||||
TirePressureFrontRightUnit string `json:"tirePressureFrontRightUnit"` // "PSI",
|
TirePressureFrontRightUnit string `json:"tirePressureFrontRightUnit"` // "PSI",
|
||||||
TirePressureRearLeft int `json:"tirePressureRearLeft,omitempty"` // null | 36
|
TirePressureRearLeft float64 `json:"tirePressureRearLeft,omitempty"` // null | 36
|
||||||
TirePressureRearLeftUnit string `json:"tirePressureRearLeftUnit"` // "PSI"
|
TirePressureRearLeftUnit string `json:"tirePressureRearLeftUnit"` // "PSI"
|
||||||
TirePressureRearRight int `json:"tirePressureRearRight,omitempty"` // null | 36
|
TirePressureRearRight float64 `json:"tirePressureRearRight,omitempty"` // null | 36
|
||||||
TirePressureRearRightUnit string `json:"tirePressureRearRightUnit"` // "PSI"
|
TirePressureRearRightUnit string `json:"tirePressureRearRightUnit"` // "PSI"
|
||||||
DoorBootPosition string `json:"doorBootPosition"` // "CLOSED | OPEN"
|
DoorBootPosition string `json:"doorBootPosition"` // "CLOSED | OPEN"
|
||||||
DoorEngineHoodPosition string `json:"doorEngineHoodPosition"` // "CLOSED | OPEN"
|
DoorEngineHoodPosition string `json:"doorEngineHoodPosition"` // "CLOSED | OPEN"
|
||||||
|
@ -906,13 +906,13 @@ func (v *Vehicle) parseTire(prefix, suffix, name string, value any) {
|
|||||||
// v.client.logger.Debug("VEHICLE COND", "key", name, "data", value, "number", len(submatchall))
|
// v.client.logger.Debug("VEHICLE COND", "key", name, "data", value, "number", len(submatchall))
|
||||||
|
|
||||||
if t, ok := v.Tires[pos]; ok {
|
if t, ok := v.Tires[pos]; ok {
|
||||||
t.Pressure = value.(int)
|
t.Pressure = int(value.(float64))
|
||||||
t.Updated = time.Now()
|
t.Updated = time.Now()
|
||||||
v.Tires[pos] = t
|
v.Tires[pos] = t
|
||||||
} else {
|
} else {
|
||||||
v.Tires[pos] = Tire{
|
v.Tires[pos] = Tire{
|
||||||
Position: submatchall[0],
|
Position: submatchall[0],
|
||||||
Pressure: value.(int),
|
Pressure: int(value.(float64)),
|
||||||
Updated: time.Now(),
|
Updated: time.Now(),
|
||||||
}
|
}
|
||||||
if len(submatchall) >= 2 {
|
if len(submatchall) >= 2 {
|
||||||
|
Reference in New Issue
Block a user