diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 417740d..a19eadc 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -331,7 +331,19 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): self.thermostat_menu.addAction(self.actionEnter_DFU_Mode) self.thermostat_menu.addAction(self.actionNetwork_Settings) + + @asyncSlot(bool) + async def load(_): + await self.client.load_config() + + self.actionLoad_all_configs.triggered.connect(load) self.thermostat_menu.addAction(self.actionLoad_all_configs) + + @asyncSlot(bool) + async def save(_): + await self.client.save_config() + + self.actionSave_all_configs.triggered.connect(save) self.thermostat_menu.addAction(self.actionSave_all_configs) def about_thermostat():