From 3d801666faa00ec5d705379873163db4e28a209d Mon Sep 17 00:00:00 2001 From: atse Date: Tue, 11 Jul 2023 12:28:20 +0800 Subject: [PATCH] Update fan slider value immediately after fan auto --- pytec/tec_qt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 2069c37..53a0e0f 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -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())