[mqtt.generic] Percentage range fix #10586 (#10587)

Signed-off-by: Rogier Hofboer <rogier@hofboer.nl>
pull/10885/head
Rogier Hofboer 2021-06-21 21:24:54 +02:00 committed by GitHub
parent ef1deff4e9
commit ea2cb217e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ public class PercentageValue extends Value {
@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 %%");
}
}