Skip to content

Commit

Permalink
Add missing ScriptProfile parameter options (#4360)
Browse files Browse the repository at this point in the history
for commandFromItemScript and stateFromItemScript

Signed-off-by: Jimmy Tanagra <[email protected]>
  • Loading branch information
jimtng authored Aug 21, 2024
1 parent 506ccd4 commit b8e0f94
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ public void updated(Transformation oldElement, Transformation element) {
return null;
}

if (ScriptProfile.CONFIG_TO_HANDLER_SCRIPT.equals(param) || ScriptProfile.CONFIG_TO_ITEM_SCRIPT.equals(param)) {
if (ScriptProfile.CONFIG_TO_HANDLER_SCRIPT.equals(param) || ScriptProfile.CONFIG_TO_ITEM_SCRIPT.equals(param)
|| ScriptProfile.CONFIG_COMMAND_FROM_ITEM_SCRIPT.equals(param)
|| ScriptProfile.CONFIG_STATE_FROM_ITEM_SCRIPT.equals(param)) {
return transformationRegistry.getTransformations(List.of(scriptType.toLowerCase())).stream()
.map(c -> new ParameterOption(c.getUID(), c.getLabel())).toList();
}
Expand Down

0 comments on commit b8e0f94

Please sign in to comment.