|
59 | 59 | import org.openhab.core.library.unit.Units; |
60 | 60 | import org.openhab.core.thing.ThingRegistry; |
61 | 61 | import org.openhab.core.thing.binding.ThingActions; |
| 62 | +import org.openhab.core.thing.link.ItemChannelLinkRegistry; |
62 | 63 | import org.openhab.core.types.Command; |
63 | 64 | import org.openhab.core.types.RefreshType; |
64 | 65 | import org.openhab.core.types.State; |
@@ -91,7 +92,8 @@ public class DefaultScriptScopeProvider implements ScriptExtensionProvider { |
91 | 92 | @Activate |
92 | 93 | public DefaultScriptScopeProvider(final @Reference ItemRegistry itemRegistry, |
93 | 94 | final @Reference ThingRegistry thingRegistry, final @Reference RuleRegistry ruleRegistry, |
94 | | - final @Reference EventPublisher eventPublisher) { |
| 95 | + final @Reference EventPublisher eventPublisher, |
| 96 | + final @Reference ItemChannelLinkRegistry itemChannelLinkRegistry) { |
95 | 97 | this.busEvent = new ScriptBusEventImpl(itemRegistry, eventPublisher); |
96 | 98 | this.thingActions = new ScriptThingActionsImpl(thingRegistry); |
97 | 99 |
|
@@ -171,6 +173,7 @@ public DefaultScriptScopeProvider(final @Reference ItemRegistry itemRegistry, |
171 | 173 | elements.put("items", new ItemRegistryDelegate(itemRegistry)); |
172 | 174 | elements.put("ir", itemRegistry); |
173 | 175 | elements.put("itemRegistry", itemRegistry); |
| 176 | + elements.put("itemChannelLinkRegistry", itemChannelLinkRegistry); |
174 | 177 | elements.put("things", thingRegistry); |
175 | 178 | elements.put("rules", ruleRegistry); |
176 | 179 | elements.put("events", busEvent); |
|
0 commit comments