Update fan slider value immediately after fan auto

This commit is contained in:
atse 2023-07-11 12:28:20 +08:00
parent 5e105884d1
commit 3d801666fa

View File

@ -133,6 +133,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
self.fan_power_slider.setEnabled(not enabled)
if enabled:
await self.tec_client.set_param("fan", "auto")
self.fan_update(await self.tec_client.fan())
else:
await self.tec_client.set_param("fan", self.fan_power_slider.value())