Skip to content

Commit

Permalink
oh-trend: Fix type of trendlineSampling parameter (#1995)
Browse files Browse the repository at this point in the history
Fixes #1632.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 authored Aug 19, 2023
1 parent db174ed commit 6648511
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bundles/org.openhab.ui/doc/components/oh-cell.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ A regular or expandable cell
<PropOption value="right" label="right" />
</PropOptions>
</PropBlock>
<PropBlock type="TEXT" name="trendSampling" label="Trend Line Sampling">
<PropBlock type="INTEGER" name="trendSampling" label="Trend Line Sampling">
<PropDescription>
Amount of minutes between each point of the trendline (default: 60). Affected by persistence strategies different from "every minute"
</PropDescription>
Expand Down
2 changes: 1 addition & 1 deletion bundles/org.openhab.ui/doc/components/oh-label-card.md
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ Display the state of an item in a card
<PropOption value="right" label="right" />
</PropOptions>
</PropBlock>
<PropBlock type="TEXT" name="trendSampling" label="Trend Line Sampling">
<PropBlock type="INTEGER" name="trendSampling" label="Trend Line Sampling">
<PropDescription>
Amount of minutes between each point of the trendline (default: 60). Affected by persistence strategies different from "every minute"
</PropDescription>
Expand Down
2 changes: 1 addition & 1 deletion bundles/org.openhab.ui/doc/components/oh-label-cell.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ A cell with a big label to show a short item state value
<PropOption value="right" label="right" />
</PropOptions>
</PropBlock>
<PropBlock type="TEXT" name="trendSampling" label="Trend Line Sampling">
<PropBlock type="INTEGER" name="trendSampling" label="Trend Line Sampling">
<PropDescription>
Amount of minutes between each point of the trendline (default: 60). Affected by persistence strategies different from "every minute"
</PropDescription>
Expand Down
2 changes: 1 addition & 1 deletion bundles/org.openhab.ui/doc/components/oh-trend.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Trend line to display the overall recent evolution of an item
<PropOption value="right" label="right" />
</PropOptions>
</PropBlock>
<PropBlock type="TEXT" name="trendSampling" label="Trend Line Sampling">
<PropBlock type="INTEGER" name="trendSampling" label="Trend Line Sampling">
<PropDescription>
Amount of minutes between each point of the trendline (default: 60). Affected by persistence strategies different from "every minute"
</PropDescription>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { pi, pt, po } from '../helpers.js'
import { pi, pt, po, pn } from '../helpers.js'

export default () => [
pi('trendItem', 'Trend Line Item', 'Item to show as a trend line in the background'),
Expand All @@ -11,5 +11,5 @@ export default () => [
{ value: 'left', label: 'left' },
{ value: 'right', label: 'right' }
]).a(),
pt('trendSampling', 'Trend Line Sampling', 'Amount of minutes between each point of the trendline (default: 60). Affected by persistence strategies different from "every minute"').a()
pn('trendSampling', 'Trend Line Sampling', 'Amount of minutes between each point of the trendline (default: 60). Affected by persistence strategies different from "every minute"').a()
]

0 comments on commit 6648511

Please sign in to comment.