Sitemap editor: Remove sendFrequency parameter (#2705)
See https://github.com/openhab/openhab-core/issues/4338#issuecomment-2283251553 Signed-off-by: Mark Herwege <mark.herwege@telenet.be>pull/2706/head
parent
be71ace313
commit
175b639937
|
@ -11,7 +11,6 @@
|
|||
icon: 'icon=',
|
||||
widgetattr: ['url=', 'refresh=', 'service=', 'height=', 'minValue=', 'maxValue=', 'step=', 'encoding=', 'yAxisDecimalPattern=', 'inputHint=', 'columns='],
|
||||
widgetboolattr: ['legend='],
|
||||
widgetfreqattr: 'sendFrequency=',
|
||||
widgetfrcitmattr: 'forceasitem=',
|
||||
widgetmapattr: 'mappings=',
|
||||
widgetbuttonattr: 'buttons=',
|
||||
|
@ -116,7 +115,6 @@ WidgetAttr -> %widgetswitchattr
|
|||
| %widgetronlyattr {% (d) => ['releaseOnly', true] %}
|
||||
| %widgetfrcitmattr _ WidgetBooleanAttrValue {% (d) => ['forceAsItem', d[2]] %}
|
||||
| %widgetboolattr _ WidgetBooleanAttrValue {% (d) => [d[0].value, d[2]] %}
|
||||
| %widgetfreqattr _ WidgetAttrValue {% (d) => ['frequency', d[2]] %}
|
||||
| %widgetperiodattr _ WidgetPeriodAttrValue {% (d) => ['period', d[2]] %}
|
||||
| %icon _ WidgetIconRulesAttrValue {% (d) => ['iconrules', d[2]] %}
|
||||
| %icon _ WidgetIconAttrValue {% (d) => [d[0].value, d[2].join("")] %}
|
||||
|
|
|
@ -9,8 +9,6 @@ function writeWidget (widget, indent) {
|
|||
dsl += ' switchSupport'
|
||||
} else if (key === 'releaseOnly') {
|
||||
dsl += ' releaseOnly'
|
||||
} else if (key === 'frequency') {
|
||||
dsl += ' sendFrequency=' + widget.config[key]
|
||||
} else if (key === 'forceAsItem') {
|
||||
dsl += ' forceasitem=' + widget.config[key]
|
||||
} else if (key === 'icon') {
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
validate pattern="^((P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(\d+H)?(\d+M)?(\d+S)?)?|\d*[YMWDh])-)?-?(P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(\d+H)?(\d+M)?(\d+S)?)?|\d*[YMWDh])$"
|
||||
:value="widget.config.period" @input="updateParameter('period', $event)" clear-button />
|
||||
<f7-list-input v-if="supports('height')" label="Height" type="number" :value="widget.config.height" @input="updateParameter('height', $event)" clear-button />
|
||||
<f7-list-input v-if="supports('sendFrequency')" label="Frequency" type="number" :value="widget.config.sendFrequency" @input="updateParameter('sendFrequency', $event)" clear-button />
|
||||
<f7-list-input v-if="supports('minValue')" label="Minimum" type="number" :value="widget.config.minValue" @input="updateParameter('minValue', $event)" clear-button />
|
||||
<f7-list-input v-if="supports('maxValue')" label="Maximum" type="number" :value="widget.config.maxValue" @input="updateParameter('maxValue', $event)" clear-button />
|
||||
<f7-list-input v-if="supports('step')" label="Step" type="number" :value="widget.config.step" @input="updateParameter('step', $event)" clear-button />
|
||||
|
@ -91,9 +90,8 @@ export default {
|
|||
Chart: ['service', 'period', 'refresh', 'legend', 'forceAsItem', 'yAxisDecimalPattern'],
|
||||
Webview: ['url', 'height'],
|
||||
Mapview: ['height'],
|
||||
Slider: ['sendFrequency', 'switchEnabled', 'releaseOnly', 'minValue', 'maxValue', 'step'],
|
||||
Slider: ['switchEnabled', 'releaseOnly', 'minValue', 'maxValue', 'step'],
|
||||
Setpoint: ['minValue', 'maxValue', 'step'],
|
||||
Colorpicker: ['sendFrequency'],
|
||||
Input: ['inputHint'],
|
||||
Default: ['height']
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue