Skip to content

Commit

Permalink
fix(poll-state): stop init() from overriding super.init() and being c…
Browse files Browse the repository at this point in the history
…alled twice

Closes #236
  • Loading branch information
zachowj committed Apr 25, 2020
1 parent 338dd9b commit 0162db6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nodes/poll-state/poll-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ module.exports = function (RED) {
class TimeSinceStateNode extends EventsHaNode {
constructor(nodeDefinition) {
super(nodeDefinition, RED, nodeOptions);
this.init();
}

init() {
if (!this.nodeConfig.entity_id) {
throw new Error('Entity Id is required');
}
Expand Down

0 comments on commit 0162db6

Please sign in to comment.