Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Promise((resolve, reject) => {
const vehicleOptions = {
authToken,
vehicleID
};
tjs.doorUnlock(vehicleOptions, function (err, data) {
if (err) {
console.log(err)
reject(err)
}
resolve(data)
});
})
},
"unlock": function(callback) {
Tesla.doorUnlock({"authToken": g_BearerToken, "vehicleID": Config.tesla.vehicleId}, callback);
},
"start_climate": function(callback) {