refactor: do not test automations without outputs

This commit is contained in:
Carlos Valente
2025-02-15 14:37:36 +01:00
committed by Carlos Valente
parent 891bda6661
commit 11c1b472a2
@@ -37,7 +37,7 @@ export function triggerAutomations(event: TimerLifeCycle, state: RuntimeState) {
triggerAutomations.forEach((trigger) => {
const automation = automations[trigger.automationId];
if (!automation) {
if (!automation || automation.outputs.length === 0) {
return;
}
const shouldSend = testConditions(automation.filters, automation.filterRule, state);