From 2f4dce217589ab2c5af79e041bb8617b2ddbb719 Mon Sep 17 00:00:00 2001 From: Andrew Fiddian-Green Date: Wed, 3 Jul 2024 12:12:30 +0100 Subject: [PATCH] [growatt] annotate ThingActions implementation as a Component (#16986) Signed-off-by: Andrew Fiddian-Green Signed-off-by: Ciprian Pascu --- .../binding/growatt/internal/action/GrowattActions.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bundles/org.openhab.binding.growatt/src/main/java/org/openhab/binding/growatt/internal/action/GrowattActions.java b/bundles/org.openhab.binding.growatt/src/main/java/org/openhab/binding/growatt/internal/action/GrowattActions.java index bd55c04a079..bc2760bae4f 100644 --- a/bundles/org.openhab.binding.growatt/src/main/java/org/openhab/binding/growatt/internal/action/GrowattActions.java +++ b/bundles/org.openhab.binding.growatt/src/main/java/org/openhab/binding/growatt/internal/action/GrowattActions.java @@ -20,6 +20,8 @@ import org.openhab.core.automation.annotation.RuleAction; import org.openhab.core.thing.binding.ThingActions; import org.openhab.core.thing.binding.ThingActionsScope; import org.openhab.core.thing.binding.ThingHandler; +import org.osgi.service.component.annotations.Component; +import org.osgi.service.component.annotations.ServiceScope; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -28,6 +30,7 @@ import org.slf4j.LoggerFactory; * * @author Andrew Fiddian-Green - Initial contribution */ +@Component(scope = ServiceScope.PROTOTYPE, service = GrowattActions.class) @ThingActionsScope(name = "growatt") @NonNullByDefault public class GrowattActions implements ThingActions {