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-30 14:35:37 -04:00
parent b2ae1e5c76
commit f62fc1f0f7

View File

@ -499,9 +499,10 @@ func (v *Vehicle) GetClimatePresets() {
re1 := regexp.MustCompile(`\"`)
result := re1.ReplaceAllString(string(tmp.Data), "")
re2 := regexp.MustCompile(`[\\u005c]{3}`)
v.client.logger.Debug("subaru climate presets trimmed http output #1", "body", result)
re2 := regexp.MustCompile(`[\\u005c]{}`)
result = re2.ReplaceAllString(result, "\"") // \u0022
v.client.logger.Debug("subaru climate presets trimmed http output", "body", result)
v.client.logger.Debug("subaru climate presets trimmed http output #2", "body", result)
var cProfiles []ClimateProfile
err = json.Unmarshal([]byte(result), &cProfiles)