From 9de343a9fd123c174d40cdbfa4388434e79b1824 Mon Sep 17 00:00:00 2001 From: andig Date: Thu, 12 Aug 2021 14:29:11 +0200 Subject: [PATCH] Minor --- vehicle/skoda/api.go | 66 -------------------------------------------- 1 file changed, 66 deletions(-) diff --git a/vehicle/skoda/api.go b/vehicle/skoda/api.go index 171e5becc..a9f010ed1 100644 --- a/vehicle/skoda/api.go +++ b/vehicle/skoda/api.go @@ -91,13 +91,6 @@ type ChargerResponse struct { } } -// charging/settings -// { -// "autoUnlockPlugWhenCharged": "Permanent", -// "maxChargeCurrentAc": "Maximum", -// "targetStateOfChargeInPercent": 100 -// } - // Charger implements the /v1/charging//status response func (v *API) Charger(vin string) (ChargerResponse, error) { var res ChargerResponse @@ -105,62 +98,3 @@ func (v *API) Charger(vin string) (ChargerResponse, error) { err := v.getJSON(uri, &res) return res, err } - -// ClimaterResponse is the /bs/climatisation/v1/%s/%s/vehicles/%s/climater api -// type ClimaterResponse struct { -// } - -// // Climater implements the /climater response -// func (v *API) Climater(vin string) (ClimaterResponse, error) { -// var res ClimaterResponse -// uri := fmt.Sprintf("%s/bs/climatisation/v1/%s/%s/vehicles/%s/climater", BaseURI, v.brand, v.country, vin) -// err := v.getJSON(uri, &res) -// return res, err -// } - -// const ( -// ActionCharge = "batterycharge" -// ActionChargeStart = "start" -// ActionChargeStop = "stop" -// ) - -// type actionDefinition struct { -// contentType string -// appendix string -// } - -// var actionDefinitions = map[string]actionDefinition{ -// ActionCharge: { -// "application/vnd.vwg.mbb.ChargerAction_v1_0_0+xml", -// "charger/actions", -// }, -// } - -// // Action implements vehicle actions -// func (v *API) Action(vin, action, value string) error { -// def := actionDefinitions[action] - -// uri := fmt.Sprintf("%s/bs/%s/v1/%s/%s/vehicles/%s/%s", BaseURI, action, v.brand, v.country, vin, def.appendix) -// body := "" + value + "" - -// req, err := request.New(http.MethodPost, uri, strings.NewReader(body), map[string]string{ -// "Content-type": def.contentType, -// }) - -// if err == nil { -// var resp *http.Response -// if resp, err = v.Do(req); err == nil { -// resp.Body.Close() -// } -// } - -// return err -// } - -// // Any implements any api response -// func (v *API) Any(base, vin string) (interface{}, error) { -// var res interface{} -// uri := fmt.Sprintf("%s/"+strings.TrimLeft(base, "/"), BaseURI, v.brand, v.country, vin) -// err := v.getJSON(uri, &res) -// return res, err -// }