Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Set a temp to 64.99
- see the error
Expected behavior
it is
Screenshots
If applicable, add screenshots to help explain your problem.
Error message
Jun 08 22:10:59 fw13 systemd[1]: fw-fanctrl.service: Scheduled restart job, restart counter is at 4.
Jun 08 22:10:59 fw13 systemd[1]: Started Framework Fan Controller.
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: Traceback (most recent call last):
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: File "/nix/store/phpd7k4amislksrjabl65pb2qwsb0d4x-python3.13-fw-fanctrl-1.0.4/bin/.fw-fanctrl-wrapped", line 9, in <module>
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: sys.exit(main())
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: ~~~~^^
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: File "/nix/store/phpd7k4amislksrjabl65pb2qwsb0d4x-python3.13-fw-fanctrl-1.0.4/lib/python3.13/site-packages/fw_fanctrl/__main__.py", line 3>
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: fan = FanController(
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: hardware_controller=hardware_controller,
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: ...<3 lines>...
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: output_format=getattr(args, "output_format", None),
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: )
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: File "/nix/store/phpd7k4amislksrjabl65pb2qwsb0d4x-python3.13-fw-fanctrl-1.0.4/lib/python3.13/site-packages/fw_fanctrl/FanController.py", l>
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: self.configuration = Configuration(config_path)
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: ~~~~~~~~~~~~~^^^^^^^^^^^^^
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: File "/nix/store/phpd7k4amislksrjabl65pb2qwsb0d4x-python3.13-fw-fanctrl-1.0.4/lib/python3.13/site-packages/fw_fanctrl/Configuration.py", l>
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: self.reload()
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: ~~~~~~~~~~~^^
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: File "/nix/store/phpd7k4amislksrjabl65pb2qwsb0d4x-python3.13-fw-fanctrl-1.0.4/lib/python3.13/site-packages/fw_fanctrl/Configuration.py", l>
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: self.data = self.parse(raw_config)
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: ~~~~~~~~~~^^^^^^^^^^^^
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: File "/nix/store/phpd7k4amislksrjabl65pb2qwsb0d4x-python3.13-fw-fanctrl-1.0.4/lib/python3.13/site-packages/fw_fanctrl/Configuration.py", l>
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: jsonschema.Draft202012Validator(json.load(VALIDATION_SCHEMA_PATH.open("r"))).validate(config)
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: File "/nix/store/nmn6lvxs7a2yw5a5yzhg3pfz0mdvdjfm-python3.13-jsonschema-4.26.0/lib/python3.13/site-packages/jsonschema/validators.py", lin>
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: raise error
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: jsonschema.exceptions.ValidationError: 64.99 is not a multiple of 0.01
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: Failed validating 'multipleOf' in schema['properties']['strategies']['additionalProperties']['properties']['speedCurve']['items']['propertie>
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: {'type': 'number',
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: 'multipleOf': 0.01,
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: 'minimum': 0,
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: 'maximum': 100,
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: 'description': 'Temperature threshold (in degrees Celsius) up to two '
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: 'digit precision (e.g. 15.23).'}
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: On instance['strategies']['hotonleg']['speedCurve'][3]['temp']:
Jun 08 22:10:59 fw13 fw-fanctrl[199258]: 64.99
Environment (please complete the following information):
- OS: [e.g. Arch] nixos
- Version [e.g. commit 176d34b]
- Configuration file [config.json]
- Installation method [full command)/package manager/other...]
Additional context
Add any other context about the problem here.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
it is
Screenshots
If applicable, add screenshots to help explain your problem.
Error message
Environment (please complete the following information):
Additional context
Add any other context about the problem here.