fix: #2 tesla removed this endpoint

This commit is contained in:
gak 2023-08-30 14:39:12 +10:00
parent 5e40f2cf52
commit 78ed8a9477
No known key found for this signature in database

View file

@ -9,7 +9,6 @@ use serde::{Deserialize, Serialize};
impl Api { impl Api {
get!(vehicles, Vec<Vehicle>, "/vehicles"); get!(vehicles, Vec<Vehicle>, "/vehicles");
get_arg!(vehicle_data, VehicleData, "/vehicles/{}/vehicle_data", VehicleId); get_arg!(vehicle_data, VehicleData, "/vehicles/{}/vehicle_data", VehicleId);
get_arg!(charge_state, ChargeState, "/vehicles/{}/data_request/charge_state", VehicleId);
post_arg!(set_charge_limit, SetChargeLimit, "/vehicles/{}/command/set_charge_limit", VehicleId); post_arg!(set_charge_limit, SetChargeLimit, "/vehicles/{}/command/set_charge_limit", VehicleId);
post_arg!(set_charging_amps, SetChargingAmps, "/vehicles/{}/command/set_charging_amps", VehicleId); post_arg!(set_charging_amps, SetChargingAmps, "/vehicles/{}/command/set_charging_amps", VehicleId);
post_arg_empty!(charge_start, "/vehicles/{}/command/charge_start", VehicleId); post_arg_empty!(charge_start, "/vehicles/{}/command/charge_start", VehicleId);