Fix invalid rule handling

This commit is contained in:
Theo Arends 2024-04-15 17:25:11 +02:00
parent cad288bd0d
commit ecf2504edf
1 changed files with 4 additions and 1 deletions

View File

@ -918,7 +918,10 @@ bool RulesProcessEvent(const char *json_event)
}
bool RulesProcess(void) {
return RulesProcessEvent(XdrvMailbox.data);
if ((Settings->rule_enabled || BERRY_RULES) && !Rules.busy) { // Any rule enabled
return RulesProcessEvent(XdrvMailbox.data);
}
return true;
}
void RulesInit(void)