From c3d0fa53f1adfe03e484bca673982342c6c6b8a6 Mon Sep 17 00:00:00 2001 From: Alex Savin Date: Thu, 10 Jul 2025 16:07:05 -0400 Subject: [PATCH] Refactor ClimateProfile struct for improved readability and consistency in JSON tags --- mysubaru.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/mysubaru.go b/mysubaru.go index 8788d26..946719b 100644 --- a/mysubaru.go +++ b/mysubaru.go @@ -352,20 +352,20 @@ type VehicleCondition struct { // ClimateProfile represents a climate control profile for a Subaru vehicle. type ClimateProfile struct { Name string `json:"name"` - VehicleType string `json:"vehicleType,omitempty"` // vehicleType [ gas | phev ] - PresetType string `json:"presetType"` // presetType [ subaruPreset | userPreset ] - StartConfiguration string `json:"startConfiguration"` // startConfiguration [ START_ENGINE_ALLOW_KEY_IN_IGNITION (gas) | START_CLIMATE_CONTROL_ONLY_ALLOW_KEY_IN_IGNITION (phev) ] - RunTimeMinutes int `json:"runTimeMinutes,string"` // runTimeMinutes [ 5 | 10 ] - HeatedRearWindowActive string `json:"heatedRearWindowActive"` // heatedRearWindowActive: [ false | true ] - HeatedSeatFrontRight string `json:"heatedSeatFrontRight"` // heatedSeatFrontRight: [ OFF | LOW_HEAT | MEDIUM_HEAT | HIGH_HEAT ] - HeatedSeatFrontLeft string `json:"heatedSeatFrontLeft"` // heatedSeatFrontLeft: [ OFF | LOW_HEAT | MEDIUM_HEAT | HIGH_HEAT ] - ClimateZoneFrontTemp int `json:"climateZoneFrontTemp,string"` // climateZoneFrontTemp: [ for _ in range(60, 85 + 1)] // climateZoneFrontTempCelsius: [for _ in range(15, 30 + 1) ] - ClimateZoneFrontAirMode string `json:"climateZoneFrontAirMode"` // climateZoneFrontAirMode: [ WINDOW | FEET_WINDOW | FACE | FEET | FEET_FACE_BALANCED | AUTO ] - ClimateZoneFrontAirVolume int `json:"climateZoneFrontAirVolume,string"` // climateZoneFrontAirVolume: [ AUTO | 2 | 4 | 7 ] - OuterAirCirculation string `json:"outerAirCirculation"` // airConditionOn: [ false | true ] - AirConditionOn bool `json:"airConditionOn"` // airConditionOn: [ false | true ] - CanEdit bool `json:"canEdit"` // canEdit [ false | true ] - Disabled bool `json:"disabled"` // disabled [ false | true ] + VehicleType string `json:"vehicleType,omitempty"` // vehicleType [ gas | phev ] + PresetType string `json:"presetType"` // presetType [ subaruPreset | userPreset ] + StartConfiguration string `json:"startConfiguration"` // startConfiguration [ START_ENGINE_ALLOW_KEY_IN_IGNITION (gas) | START_CLIMATE_CONTROL_ONLY_ALLOW_KEY_IN_IGNITION (phev) ] + RunTimeMinutes int `json:"runTimeMinutes,string"` // runTimeMinutes [ 5 | 10 ] + HeatedRearWindowActive string `json:"heatedRearWindowActive"` // heatedRearWindowActive: [ false | true ] + HeatedSeatFrontRight string `json:"heatedSeatFrontRight"` // heatedSeatFrontRight: [ OFF | LOW_HEAT | MEDIUM_HEAT | HIGH_HEAT ] + HeatedSeatFrontLeft string `json:"heatedSeatFrontLeft"` // heatedSeatFrontLeft: [ OFF | LOW_HEAT | MEDIUM_HEAT | HIGH_HEAT ] + ClimateZoneFrontTemp int `json:"climateZoneFrontTemp,string"` // climateZoneFrontTemp: [ for _ in range(60, 85 + 1)] // climateZoneFrontTempCelsius: [for _ in range(15, 30 + 1) ] + ClimateZoneFrontAirMode string `json:"climateZoneFrontAirMode"` // climateZoneFrontAirMode: [ WINDOW | FEET_WINDOW | FACE | FEET | FEET_FACE_BALANCED | AUTO ] + ClimateZoneFrontAirVolume int `json:"climateZoneFrontAirVolume"` // climateZoneFrontAirVolume: [ AUTO | 2 | 4 | 7 ] + OuterAirCirculation string `json:"outerAirCirculation"` // airConditionOn: [ false | true ] + AirConditionOn bool `json:"airConditionOn"` // airConditionOn: [ false | true ] + CanEdit bool `json:"canEdit"` // canEdit [ false | true ] + Disabled bool `json:"disabled"` // disabled [ false | true ] } // GeoLocation represents the geographical location of a Subaru vehicle.