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 2cdf567..70734ef 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()