More changes
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 23s
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 23s
This commit is contained in:
@ -495,7 +495,7 @@ func (v *Vehicle) GetClimatePresets() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
v.client.logger.Error("error while parsing json", "request", "GetClimatePresets", "error", err.Error())
|
v.client.logger.Error("error while parsing json", "request", "GetClimatePresets", "error", err.Error())
|
||||||
}
|
}
|
||||||
v.client.logger.Debug("subaru climate presets parsed http output", "body", tmp)
|
v.client.logger.Debug("subaru climate presets parsed http output", "body", string(tmp.Data))
|
||||||
|
|
||||||
var cProfiles []ClimateProfile
|
var cProfiles []ClimateProfile
|
||||||
err = json.Unmarshal([]byte(tmp.Data), &cProfiles)
|
err = json.Unmarshal([]byte(tmp.Data), &cProfiles)
|
||||||
@ -557,7 +557,7 @@ func (v *Vehicle) GetClimateUserPresets() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
v.client.logger.Error("error while parsing json", "request", "GetClimatePresets", "error", err.Error())
|
v.client.logger.Error("error while parsing json", "request", "GetClimatePresets", "error", err.Error())
|
||||||
}
|
}
|
||||||
v.client.logger.Debug("subaru climate presets parsed http output", "body", tmp)
|
v.client.logger.Debug("subaru climate presets parsed http output", "body", string(tmp.Data))
|
||||||
|
|
||||||
var cProfiles []ClimateProfile
|
var cProfiles []ClimateProfile
|
||||||
err = json.Unmarshal([]byte(tmp.Data), &cProfiles)
|
err = json.Unmarshal([]byte(tmp.Data), &cProfiles)
|
||||||
|
Reference in New Issue
Block a user