Refactor ClimateProfile struct to change boolean fields to string for improved consistency in JSON representation
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s

This commit is contained in:
2025-07-10 16:17:22 -04:00
parent d41a2a7618
commit 20f7ab5aa2

View File

@ -362,10 +362,10 @@ type ClimateProfile struct {
ClimateZoneFrontTemp int `json:"climateZoneFrontTemp,string"` // climateZoneFrontTemp: [ for _ in range(60, 85 + 1)] // climateZoneFrontTempCelsius: [for _ in range(15, 30 + 1) ] 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 ] ClimateZoneFrontAirMode string `json:"climateZoneFrontAirMode"` // climateZoneFrontAirMode: [ WINDOW | FEET_WINDOW | FACE | FEET | FEET_FACE_BALANCED | AUTO ]
ClimateZoneFrontAirVolume string `json:"climateZoneFrontAirVolume"` // climateZoneFrontAirVolume: [ AUTO | 2 | 4 | 7 ] ClimateZoneFrontAirVolume string `json:"climateZoneFrontAirVolume"` // climateZoneFrontAirVolume: [ AUTO | 2 | 4 | 7 ]
OuterAirCirculation string `json:"outerAirCirculation"` // airConditionOn: [ false | true ] OuterAirCirculation string `json:"outerAirCirculation"` // airConditionOn: [ auto | outsideAir | true ]
AirConditionOn bool `json:"airConditionOn"` // airConditionOn: [ false | true ] AirConditionOn string `json:"airConditionOn"` // airConditionOn: [ false | true ]
CanEdit bool `json:"canEdit"` // canEdit [ false | true ] CanEdit string `json:"canEdit"` // canEdit [ false | true ]
Disabled bool `json:"disabled"` // disabled [ false | true ] Disabled string `json:"disabled"` // disabled [ false | true ]
} }
// GeoLocation represents the geographical location of a Subaru vehicle. // GeoLocation represents the geographical location of a Subaru vehicle.