mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Ensure types in effects to avoid integer calculations were floats were needed
Former-commit-id: 84d8b281a544478bf14e88284cb600fdbb11f65c
This commit is contained in:
@@ -3,10 +3,10 @@ import time
|
||||
import colorsys
|
||||
|
||||
# Get the parameters
|
||||
rotationTime = hyperion.args.get('rotation-time', 30.0)
|
||||
brightness = hyperion.args.get('brightness', 1.0)
|
||||
saturation = hyperion.args.get('saturation', 1.0)
|
||||
reverse = hyperion.args.get('reverse', False)
|
||||
rotationTime = float(hyperion.args.get('rotation-time', 30.0))
|
||||
brightness = float(hyperion.args.get('brightness', 1.0))
|
||||
saturation = float(hyperion.args.get('saturation', 1.0))
|
||||
reverse = bool(hyperion.args.get('reverse', False))
|
||||
|
||||
# Check parameters
|
||||
rotationTime = max(0.1, rotationTime)
|
||||
|
Reference in New Issue
Block a user