From 142fe1043c108b393db03b65f7dddd7f64034cb2 Mon Sep 17 00:00:00 2001 From: atse Date: Wed, 5 Jul 2023 13:00:56 +0800 Subject: [PATCH] Remove unused 'as' clause --- pytec/tec_qt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index e582053..26279fc 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -109,10 +109,10 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): logging.debug(fan_settings) if fan_settings is None: return - with QSignalBlocker(self.fan_power_slider) as _: + with QSignalBlocker(self.fan_power_slider): self.fan_power_slider.setValue(fan_settings["fan_pwm"]) self.fan_power_slider.setEnabled(not fan_settings["auto_mode"]) - with QSignalBlocker(self.fan_auto_box) as _: + with QSignalBlocker(self.fan_auto_box): self.fan_auto_box.setChecked(fan_settings["auto_mode"]) @asyncSlot()