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 <rogier@hofboer.nl>
  • Loading branch information
rogierhofboer authored Jun 21, 2021
1 parent ab86650 commit 8546f6f
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 8546f6f

Please sign in to comment.