Skip to content

Commit

Permalink
fix(events-state): reset timer active flag when condition is false
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Oct 11, 2020
1 parent c31b433 commit d119307
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions nodes/events-state-changed/events-state-changed.js
Expand Up @@ -126,12 +126,7 @@ module.exports = function (RED) {
return;
}

if (
['lt', 'lte', 'gt', 'gte'].includes(
config.halt_if_compare
) &&
!isIfState
) {
if (!isIfState) {
this.topics[eventMessage.entity_id].active = false;
}
}
Expand Down

0 comments on commit d119307

Please sign in to comment.