diff --git a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/dto/DimmableLightSaveRequest.java b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/dto/DimmableLightSaveRequest.java index 01bec1a..74e911b 100644 --- a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/dto/DimmableLightSaveRequest.java +++ b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/dto/DimmableLightSaveRequest.java @@ -11,7 +11,7 @@ public class DimmableLightSaveRequest { /** The light intensity value. Goes from 0 (off) to 100 (on) */ @NotNull - @Min(1) + @Min(0) @Max(100) private Integer intensity = 0;