Skip to content

Commit 7feb0b2

Browse files
authored
Merge pull request #17 from dilyanpalauzov/j233_rm_thingmanager
README: thingManager example
2 parents c37d9fa + cb56bcf commit 7feb0b2

File tree

1 file changed

+2
-5
lines changed
  • bundles/org.openhab.automation.java223

1 file changed

+2
-5
lines changed

bundles/org.openhab.automation.java223/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -582,11 +582,8 @@ public class RunAnotherRule {
582582

583583
The thingManager is not a standard JSR223 variable, but the Java223 automation bundle can nonetheless inject it. It is also available in the base class `Java223Script`, as shown in this example.
584584

585-
```java
586-
import java.util.Map;
587-
import org.openhab.core.automation.RuleManager;
588-
589-
public class DisableThing extends Java223Script {
585+
```java
586+
public class DisableThing extends helper.generated.Java223Script {
590587
public void main() {
591588
thingManager.setEnabled(_things.network_pingdevice_mything().getUID(), false);
592589
}

0 commit comments

Comments
 (0)