forked from M-Labs/thermostat
Remove unused 'as' clause
This commit is contained in:
parent
3544f1ebdf
commit
142fe1043c
|
@ -109,10 +109,10 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
logging.debug(fan_settings)
|
logging.debug(fan_settings)
|
||||||
if fan_settings is None:
|
if fan_settings is None:
|
||||||
return
|
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.setValue(fan_settings["fan_pwm"])
|
||||||
self.fan_power_slider.setEnabled(not fan_settings["auto_mode"])
|
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"])
|
self.fan_auto_box.setChecked(fan_settings["auto_mode"])
|
||||||
|
|
||||||
@asyncSlot()
|
@asyncSlot()
|
||||||
|
|
Loading…
Reference in New Issue