Missing credentials throws unhandled error event
Closed this issue · 0 comments
solick commented
I´m facing the following problem:
Passing empty credentials to object instantation causes an unhandled error event. If i pass valid information, the authenticated event will be successfully emitted and cought:
var api = new netatmo(auth);
api.on("error", function(err) {
console.log(err);
});
api.on("warning", function(warning) {
console.log(warning);
});
api.on("authenticated", function() {
console.log("authenticated");
});