Get thermostat_ctrl_menu to subscribe to hwrev updates

This commit is contained in:
atse 2024-08-27 13:31:23 +08:00
parent b54cfacd92
commit 377c2dec48
2 changed files with 1 additions and 1 deletions

View File

@ -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)

View File

@ -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()