From f222923df95451e7a867c89e7fae9b51f11c5a9c Mon Sep 17 00:00:00 2001 From: NokkOnEffect Date: Wed, 11 Dec 2024 18:51:47 +0100 Subject: [PATCH] make ruff happy --- klippy/extras/temperature_fan.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/klippy/extras/temperature_fan.py b/klippy/extras/temperature_fan.py index acb2454fb..5a356d80e 100644 --- a/klippy/extras/temperature_fan.py +++ b/klippy/extras/temperature_fan.py @@ -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( @@ -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")