Skip to content

Commit

Permalink
fix(trigger-state): Use post migrated config for event triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Aug 11, 2024
1 parent d24b604 commit b841734
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nodes/trigger-state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ export default function triggerState(
}

if (
config.entities[IdSelectorType.Substring].length === 0 &&
config.entities[IdSelectorType.Regex].length === 0
this.config.entities[IdSelectorType.Substring].length === 0 &&
this.config.entities[IdSelectorType.Regex].length === 0
) {
for (const entity of config.entities[IdSelectorType.Entity]) {
for (const entity of this.config.entities[IdSelectorType.Entity]) {
const eventTopic = `ha_events:state_changed:${entity}`;
clientEvents.addListener(
eventTopic,
Expand Down

0 comments on commit b841734

Please sign in to comment.