Allow rollershutter to close to state 0

https://goswagger.io/use/models/schemas.html#nullability
This commit is contained in:
Florian Eitel 2019-08-11 21:55:53 +02:00
parent b3985f8b9b
commit 05fc283d06
Signed by: flo
GPG Key ID: 9987EAFEF6F686BB
2 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,7 @@ func Move(state *State, shutters []string, position int64) {
m := &models.ModulePercentage{
Bridge: state.ModuleStatus[state.ModuleForName[x]].Bridge,
ID: state.ModuleForName[x],
TargetPosition: position,
TargetPosition: swag.Int64(position),
}
updates = append(updates, m)
}

View File

@ -327,6 +327,7 @@ definitions:
target_position:
description: percentage open
type: integer
x-nullable: true
securityDefinitions:
OAuth2:
type: oauth2