Skip to content

Commit

Permalink
Missing an import
Browse files Browse the repository at this point in the history
Signed-off-by: clinique <gael@lhopital.org>
  • Loading branch information
clinique committed Oct 6, 2023
1 parent bdf5255 commit a27c3b6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import static org.smarthomej.automation.javarule.internal.JavaRuleConstants.CONDITION_FROM_ANNOTATION;
import static org.smarthomej.automation.javarule.internal.JavaRuleConstants.TRIGGER_FROM_ANNOTATION;

import java.util.Set;

import java.lang.annotation.Annotation;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
Expand Down Expand Up @@ -78,7 +80,7 @@ public static List<SimpleRule> getSimpleRules(String scriptIdentifier, JavaRule

String ruleName = method.getName();
String ruleDescription = ruleAnnotation.name();
Set<String> tags = ruleAnnotation.tags();
Set<String> ruleTags = ruleAnnotation.tags();

if (ruleDescription.isBlank() || ANNOTATION_DEFAULT.equals(ruleDescription)) {
ruleDescription = script.getClass().getSimpleName() + "/" + method.getName();
Expand Down Expand Up @@ -123,7 +125,7 @@ public Object execute(Action module, Map<String, ?> input) {
simpleRule.setDescription(ruleDescription);
simpleRule.setTriggers(triggers);
simpleRule.setConditions(conditions);
simpleRule.setTags()
simpleRule.setTags(ruleTags);

rules.add(simpleRule);

Expand Down

0 comments on commit a27c3b6

Please sign in to comment.