[automation] Correctly trigger rules with start level 50 trigger (#1962)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer 2020-12-18 22:07:19 +01:00 committed by GitHub
parent 4a108e5c80
commit 8f13b99122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1452,7 +1452,7 @@ public class RuleEngineImpl implements RuleManager, RegistryChangeListener<Modul
Object slObj = t.getConfiguration().get(SystemTriggerHandler.CFG_STARTLEVEL);
try {
Integer sl = Integer.valueOf(slObj.toString());
if (sl < StartLevelService.STARTLEVEL_RULEENGINE) {
if (sl <= StartLevelService.STARTLEVEL_RULEENGINE) {
return true;
}
} catch (NumberFormatException e) {