Skip to content

Commit c20871d

Browse files
authored
[growatt] annotate ThingActions implementation as a Component (openhab#16986)
Signed-off-by: Andrew Fiddian-Green <[email protected]>
1 parent 913ce68 commit c20871d

File tree

1 file changed

+3
-0
lines changed
  • bundles/org.openhab.binding.growatt/src/main/java/org/openhab/binding/growatt/internal/action

1 file changed

+3
-0
lines changed

bundles/org.openhab.binding.growatt/src/main/java/org/openhab/binding/growatt/internal/action/GrowattActions.java

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
import org.openhab.core.thing.binding.ThingActions;
2121
import org.openhab.core.thing.binding.ThingActionsScope;
2222
import org.openhab.core.thing.binding.ThingHandler;
23+
import org.osgi.service.component.annotations.Component;
24+
import org.osgi.service.component.annotations.ServiceScope;
2325
import org.slf4j.Logger;
2426
import org.slf4j.LoggerFactory;
2527

@@ -28,6 +30,7 @@
2830
*
2931
* @author Andrew Fiddian-Green - Initial contribution
3032
*/
33+
@Component(scope = ServiceScope.PROTOTYPE, service = GrowattActions.class)
3134
@ThingActionsScope(name = "growatt")
3235
@NonNullByDefault
3336
public class GrowattActions implements ThingActions {

0 commit comments

Comments
 (0)