Skip to content

Commit

Permalink
make ruff happy
Browse files Browse the repository at this point in the history
  • Loading branch information
NokkOnEffect committed Dec 11, 2024
1 parent 123931c commit f222923
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions klippy/extras/temperature_fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ def __init__(self, temperature_fan, config, controlled_fan=None):
)
if any(len(point) != 2 for point in points):
raise temperature_fan.printer.config_error(
"A point must have exactly one temperature and one pwm setting value."
"A point must have exactly one temperature and one pwm setting "
"value."
)
if not all(points[i] <= points[i + 1] for i in range(len(points) - 1)):
raise temperature_fan.printer.config_error(
Expand Down Expand Up @@ -302,7 +303,9 @@ def __init__(self, temperature_fan, config, controlled_fan=None):
if points[-1][0] < temperature_fan.max_temp:
points.append((temperature_fan.max_temp, points[-1][1]))

self.smooth_readings = config.getint("smooth_readings", default=None, minval=0)
self.smooth_readings = config.getint(
"smooth_readings", default=None, minval=0
)
if self.smooth_readings is not None:
config.deprecate("smooth_readings")

Expand Down

0 comments on commit f222923

Please sign in to comment.