forked from M-Labs/thermostat
Remove unused load/save request & signal
This commit is contained in:
parent
22fc7cbf22
commit
d9a3fcdc4b
pytec
@ -8,9 +8,6 @@ from pytec.gui.view.net_settings_input_diag import NetSettingsInputDiag
|
||||
class ThermostatCtrlMenu(QtWidgets.QMenu):
|
||||
reset_act = pyqtSignal(bool)
|
||||
|
||||
load_cfg_act = pyqtSignal(int)
|
||||
save_cfg_act = pyqtSignal(int)
|
||||
|
||||
def __init__(self, thermostat, style):
|
||||
super().__init__()
|
||||
self._thermostat = thermostat
|
||||
|
@ -141,8 +141,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_ctrl_menu.save_cfg_act.connect(self.save_cfg_request)
|
||||
self.thermostat_ctrl_menu.load_cfg_act.connect(self.load_cfg_request)
|
||||
|
||||
self.thermostat.hw_rev_update.connect(self.thermostat_ctrl_menu.hw_rev)
|
||||
self.thermostat_settings.setMenu(self.thermostat_ctrl_menu)
|
||||
@ -301,18 +299,6 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
self.loading_spinner.start()
|
||||
self.loading_spinner.show()
|
||||
|
||||
@asyncSlot(int)
|
||||
async def save_cfg_request(self, ch):
|
||||
assert self.thermostat.connected()
|
||||
|
||||
await self.thermostat.save_cfg(str(ch))
|
||||
|
||||
@asyncSlot(int)
|
||||
async def load_cfg_request(self, ch):
|
||||
assert self.thermostat.connected()
|
||||
|
||||
await self.thermostat.load_cfg(str(ch))
|
||||
|
||||
@asyncSlot(bool)
|
||||
async def reset_request(self, _):
|
||||
assert self.thermostat.connected()
|
||||
|
Loading…
Reference in New Issue
Block a user