Skip to content

Commit

Permalink
[mqtt.generic] Percentage range fix openhab#10586 (openhab#10587)
Browse files Browse the repository at this point in the history
Signed-off-by: Rogier Hofboer <[email protected]>
Signed-off-by: Luca Calcaterra <[email protected]>
  • Loading branch information
rogierhofboer authored and lucacalcaterra committed Aug 3, 2021
1 parent dfbe4ab commit e0886d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public String getMQTTpublishValue(@Nullable String pattern) {

@Override
public StateDescriptionFragmentBuilder createStateDescription(boolean readOnly) {
return super.createStateDescription(readOnly).withMaximum(max).withMinimum(min).withStep(step)
return super.createStateDescription(readOnly).withMaximum(HUNDRED).withMinimum(BigDecimal.ZERO).withStep(step)
.withPattern("%s %%");
}
}

0 comments on commit e0886d1

Please sign in to comment.