From 377c2dec48561a17f8061c4d1b02252125b9c86d Mon Sep 17 00:00:00 2001 From: atse Date: Tue, 27 Aug 2024 13:31:23 +0800 Subject: [PATCH] Get thermostat_ctrl_menu to subscribe to hwrev updates --- pytec/pytec/gui/view/thermostat_ctrl_menu.py | 1 + pytec/tec_qt.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/pytec/pytec/gui/view/thermostat_ctrl_menu.py b/pytec/pytec/gui/view/thermostat_ctrl_menu.py index 553a6fc..ce5f3f1 100644 --- a/pytec/pytec/gui/view/thermostat_ctrl_menu.py +++ b/pytec/pytec/gui/view/thermostat_ctrl_menu.py @@ -15,6 +15,7 @@ class ThermostatCtrlMenu(QtWidgets.QMenu): self.setTitle("Thermostat settings") self.hw_rev_data = dict() + self._thermostat.hw_rev_update.connect(self.hw_rev) self.fan_group = QtWidgets.QWidget() self.fan_group.setEnabled(False) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 14fab85..f951e1b 100755 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -140,7 +140,6 @@ class MainWindow(QtWidgets.QMainWindow): self.thermostat_ctrl_menu = ThermostatCtrlMenu(self.thermostat, self.style()) self.thermostat_ctrl_menu.reset_act.connect(self.reset_request) - self.thermostat.hw_rev_update.connect(self.thermostat_ctrl_menu.hw_rev) self.thermostat_settings.setMenu(self.thermostat_ctrl_menu) self.loading_spinner.hide()