PythonScriptsPro icon indicating copy to clipboard operation
PythonScriptsPro copied to clipboard

add discover_scripts service

Open malinovsku opened this issue 1 year ago • 1 comments

The discover_scripts method has been added for creating services, similar to native integration, but with some additions, optional constants FIELDS, DESCRIPTION, NAME for service parameters are expected in the script, an example below. With this feature, it is easier to share scripts and services are clear to run. The revision does not affect the previous functionality in any way, but only complements

NAME = "test"
DESCRIPTION = "new script"
FIELDS = {"url": {"required": True, "selector": {"template": ""}}}

malinovsku avatar Jan 23 '24 22:01 malinovsku

pr updated for version 1.0.2

malinovsku avatar Jan 27 '24 22:01 malinovsku