forked from jens/Automation
Battery charging type differentiation and other fixes
This commit is contained in:
1 parent
04fe674cf6
commit
6c31b67b14
17 files changed
+129
-34
No files matched your search
@@ -838,4 +838,17 @@ public class Rule implements Comparable<Rule>
|
||||
|
||||
return amount;
|
||||
}
|
||||
|
||||
public static int getAmountOfActivatedRules()
|
||||
{
|
||||
int amount = 0;
|
||||
|
||||
for(Rule r : Rule.getRuleCollection())
|
||||
{
|
||||
if(r.isRuleActive())
|
||||
amount++;
|
||||
}
|
||||
|
||||
return amount;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user