This commit is contained in:
2021-01-13 17:14:26 +01:00
parent 1598d4934a
commit c5d94bd1da
5 changed files with 43 additions and 12 deletions

View File

@@ -101,7 +101,7 @@ function FanStatusRestControllerForm(props: FanStatusRestControllerFormProps) {
margin="normal"
/>
<TextValidator
validators={['required', 'isNumber', 'minNumber:0', 'maxNumber:100']}
validators={['required', 'isNumber', 'minNumber:0', 'maxNumber:1024']}
errorMessages={['Fan MAX is required', "Must be a number", "Must be 0 or higher", "Max value is 1024"]}
name="fan_max_speed"
label="Fan Max Speed"