Skip to content

Commit

Permalink
[mqtt.generic] Percentage range fix #10586 (#10587)
Browse files Browse the repository at this point in the history
Signed-off-by: Rogier Hofboer <[email protected]>
  • Loading branch information
rogierhofboer authored Jun 21, 2021
1 parent ef1deff commit ea2cb21
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 ea2cb21

Please sign in to comment.