mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 13:21:53 +01:00
Add missing ScriptProfile parameter options (#4360)
for commandFromItemScript and stateFromItemScript Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
This commit is contained in:
parent
506ccd4f4d
commit
b8e0f94cb0
@ -242,7 +242,9 @@ public class ScriptTransformationService implements TransformationService, Confi
|
||||
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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user