Skip to content

Commit

Permalink
- remove subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
hacki11 committed Nov 9, 2019
1 parent eb905c6 commit 6854970
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class Bsblan extends utils.Adapter {
* Is called when databases are connected and adapter received configuration.
*/
async onReady() {
// Initialize your adapter here
// setup timer
this.interval = this.config.interval || 60;
this.interval *= 1000;
Expand All @@ -38,14 +37,6 @@ class Bsblan extends utils.Adapter {

this.values = this.resolveConfigValues();


// if (this.newValues.length !== 0) {
// this.log.info("New values found: " + [...this.newValues].sort());
// await this.initializeParameters(this.newValues);
// }
// // in this template all states changes inside the adapters namespace are subscribed
this.subscribeStates("*");

this.update();
}

Expand Down Expand Up @@ -260,6 +251,5 @@ if (module && module.parent) {
module.exports = (options) => new Bsblan(options);
} else {
// otherwise start the instance directly
//this.log.info("running in normal mode");
new Bsblan();
}

0 comments on commit 6854970

Please sign in to comment.