Skip to content

Commit

Permalink
fix(trigger-state): Use correct entity id when checking against event…
Browse files Browse the repository at this point in the history
… entity_id
  • Loading branch information
zachowj committed Feb 28, 2020
1 parent d82aa25 commit c3e7729
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nodes/trigger-state/trigger-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module.exports = function(RED) {
debug: true,
config: {
entityid: {},
entityidfilter: {},
entityidfiltertype: {},
constraints: {},
customoutputs: {},
Expand Down Expand Up @@ -112,7 +111,7 @@ module.exports = function(RED) {
if (
!utils.shouldIncludeEvent(
eventMessage.entity_id,
this.nodeConfig.entityidfilter,
this.nodeConfig.entityid,
this.nodeConfig.entityidfiltertype
)
) {
Expand Down Expand Up @@ -210,7 +209,7 @@ module.exports = function(RED) {
getNodeEntityId() {
return (
this.nodeConfig.entityidfiltertype === 'exact' &&
this.nodeConfig.entityidfilter
this.nodeConfig.entityid
);
}

Expand Down

0 comments on commit c3e7729

Please sign in to comment.