diff --git a/src/nodes/trigger-state/TriggerStateController.ts b/src/nodes/trigger-state/TriggerStateController.ts index aac282727c..eaa806dd53 100644 --- a/src/nodes/trigger-state/TriggerStateController.ts +++ b/src/nodes/trigger-state/TriggerStateController.ts @@ -260,13 +260,13 @@ export default class TriggerStateController extends ExposeAsController { actualValue, }: CustomOutputsComparatorResult, eventMessage: HassStateChangedEvent - ): Record { + ): Record | null { // If comparator did not match if (!comparatorMatched) { this.debugToClient( `output comparator failed: property "${output.comparatorPropertyValue}" with value ${actualValue} failed "${output.comparatorType}" check against (${output.comparatorValueDataType}) ${output.comparatorValue}` ); - return {}; + return null; } let message: Record = {