forked from M-Labs/thermostat
Get thermostat_ctrl_menu to subscribe to hwrev updates
This commit is contained in:
parent
b54cfacd92
commit
377c2dec48
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue