From 25c551af1da9b192c5e3430322bf7dfbccd0967b Mon Sep 17 00:00:00 2001 From: Alex Savin Date: Wed, 4 Jun 2025 17:14:38 -0400 Subject: [PATCH] Change tire pressure for the vehicle condition from float64 to int --- mysubaru.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mysubaru.go b/mysubaru.go index 8a26eca..fc331a7 100644 --- a/mysubaru.go +++ b/mysubaru.go @@ -218,13 +218,13 @@ type VehicleCondition struct { RemainingFuelPercent int `json:"remainingFuelPercent,string"` // "66" Odometer int `json:"odometer"` // 92 OdometerUnit string `json:"odometerUnit"` // "MILES" - TirePressureFrontLeft float64 `json:"tirePressureFrontLeft,omitempty"` // null | 36 + TirePressureFrontLeft int `json:"tirePressureFrontLeft,omitempty"` // null | 36 TirePressureFrontLeftUnit string `json:"tirePressureFrontLeftUnit"` // "PSI" - TirePressureFrontRight float64 `json:"tirePressureFrontRight,omitempty"` // null | 36 + TirePressureFrontRight int `json:"tirePressureFrontRight,omitempty"` // null | 36 TirePressureFrontRightUnit string `json:"tirePressureFrontRightUnit"` // "PSI", - TirePressureRearLeft float64 `json:"tirePressureRearLeft,omitempty"` // null | 36 + TirePressureRearLeft int `json:"tirePressureRearLeft,omitempty"` // null | 36 TirePressureRearLeftUnit string `json:"tirePressureRearLeftUnit"` // "PSI" - TirePressureRearRight float64 `json:"tirePressureRearRight,omitempty"` // null | 36 + TirePressureRearRight int `json:"tirePressureRearRight,omitempty"` // null | 36 TirePressureRearRightUnit string `json:"tirePressureRearRightUnit"` // "PSI" DoorBootPosition string `json:"doorBootPosition"` // "CLOSED | OPEN" DoorEngineHoodPosition string `json:"doorEngineHoodPosition"` // "CLOSED | OPEN"