diff --git a/src/vehicle.ts b/src/vehicle.ts index 4b00f11..dd070a3 100644 --- a/src/vehicle.ts +++ b/src/vehicle.ts @@ -79,7 +79,7 @@ export class VehicleAccessory { async refresh(): Promise { this.platform.TeslaFleetApi.state(this.accessory.context.vin) - .then(({ charge_state, climate_state, drive_state, vehicle_state }) => { + .then((data) => { this.accessory.context.state = "online"; this.accessory.context.charge_state = data.charge_state; this.accessory.context.climate_state = data.climate_state;