More changes
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 23s

This commit is contained in:
2025-05-31 14:36:58 -04:00
parent 6ac2a3c78b
commit 447e66f2e8

View File

@ -516,10 +516,10 @@ func (v *Vehicle) GetClimateQuickPresets() {
v.client.logger.Error("error while parsing json", "request", "GetClimatePresets", "error", err.Error())
}
// re1 := regexp.MustCompile(`\"`)
// result := re1.ReplaceAllString(string(tmp.Data), "")
re := regexp.MustCompile(`\\`)
result := re.ReplaceAllString(string(tmp.Data), ``) // \u0022
re1 := regexp.MustCompile(`\"`)
result := re1.ReplaceAllString(string(tmp.Data), "")
re2 := regexp.MustCompile(`\\`)
result = re2.ReplaceAllString(result, ``) // \u0022
v.client.logger.Debug("quick climate preset after trimming", "request", "GetClimateQuickPresets", "body", result)
var cProfile ClimateProfile