Skip to content

Commit

Permalink
fix(get-entities): Default to state_object for conditions
Browse files Browse the repository at this point in the history
Fixes #1478
  • Loading branch information
zachowj committed Aug 18, 2024
1 parent ba2ce3f commit b9631a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/nodes/get-entities/GetEntitiesController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ export default class GetEntitiesController extends SendSplitController {
break;
}

if (rule.condition === PropertySelectorType.State) {
if (
rule.condition === PropertySelectorType.State ||
// If the condition is not set, it is a state condition
rule.condition === undefined
) {
const value = selectn(rule.property, state);
const result =
await this.#comparatorService.getComparatorResult(
Expand Down

0 comments on commit b9631a2

Please sign in to comment.