Tracing down the Subaru Climate Presets
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s

This commit is contained in:
2025-05-29 22:59:35 -04:00
parent 500d2368a3
commit f3093d3002

View File

@ -480,6 +480,8 @@ func (v *Vehicle) GetClimatePresets() {
reqURL := MOBILE_API_VERSION + apiURLs["API_G2_FETCH_RES_SUBARU_PRESETS"]
resp := v.client.execute(reqURL, GET, map[string]string{}, "", false)
v.client.logger.Debug("subaru climate presets http output", "body", resp)
tmp := strings.Replace(string(resp), `\\\"`, `"`, -1)
tmp = strings.Replace(tmp, `}\",\"{`, `},{`, -1)
tmp = strings.Replace(tmp, `[\"{`, `[{`, -1)