[js] Added 'ConfigOptionProvider' to provide filenames ending with '.js' in Profile configuration (#9646)

* Added ConfigOptionProvider to provide file names ending with '.js' in Profile configuration

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
Christoph Weitkamp
2021-01-04 18:32:02 +01:00
committed by GitHub
parent ceb119b02c
commit 25947bfa9d
8 changed files with 113 additions and 54 deletions

View File

@@ -9,8 +9,9 @@
<label>JavaScript Filename</label>
<description>Filename of the JavaScript in the transform folder. The state will be available in the variable
\"input\".</description>
<limitToOptions>false</limitToOptions>
</parameter>
<parameter name="sourceFormat" type="text" required="false">
<parameter name="sourceFormat" type="text">
<label>State Formatter</label>
<description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s)</description>
<advanced>true</advanced>