Skip to content

Commit b8e0f94

Browse files
authored
Add missing ScriptProfile parameter options (openhab#4360)
for commandFromItemScript and stateFromItemScript Signed-off-by: Jimmy Tanagra <[email protected]>
1 parent 506ccd4 commit b8e0f94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bundles/org.openhab.core.automation.module.script/src/main/java/org/openhab/core/automation/module/script/ScriptTransformationService.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ public void updated(Transformation oldElement, Transformation element) {
242242
return null;
243243
}
244244

245-
if (ScriptProfile.CONFIG_TO_HANDLER_SCRIPT.equals(param) || ScriptProfile.CONFIG_TO_ITEM_SCRIPT.equals(param)) {
245+
if (ScriptProfile.CONFIG_TO_HANDLER_SCRIPT.equals(param) || ScriptProfile.CONFIG_TO_ITEM_SCRIPT.equals(param)
246+
|| ScriptProfile.CONFIG_COMMAND_FROM_ITEM_SCRIPT.equals(param)
247+
|| ScriptProfile.CONFIG_STATE_FROM_ITEM_SCRIPT.equals(param)) {
246248
return transformationRegistry.getTransformations(List.of(scriptType.toLowerCase())).stream()
247249
.map(c -> new ParameterOption(c.getUID(), c.getLabel())).toList();
248250
}

0 commit comments

Comments
 (0)