diff --git a/pytec/pytec/gui/view/thermostat_ctrl_menu.py b/pytec/pytec/gui/view/thermostat_ctrl_menu.py index 162f97b..f264b9f 100644 --- a/pytec/pytec/gui/view/thermostat_ctrl_menu.py +++ b/pytec/pytec/gui/view/thermostat_ctrl_menu.py @@ -66,9 +66,9 @@ class ThermostatCtrlMenu(QtWidgets.QMenu): self.actionnet_settings_input_diag.triggered.connect(self.net_settings_request) self.addAction(self.actionnet_settings_input_diag) - @pyqtSlot(bool) - def load(_): - self._thermostat.load_cfg() + @asyncSlot(bool) + async def load(_): + await self._thermostat.load_cfg() self._info_box.display_info_box( "Config loaded", "All channel configs have been loaded from flash." @@ -78,9 +78,9 @@ class ThermostatCtrlMenu(QtWidgets.QMenu): self.actionLoad_all_configs.triggered.connect(load) self.addAction(self.actionLoad_all_configs) - @pyqtSlot(bool) - def save(_): - self._thermostat.save_cfg() + @asyncSlot(bool) + async def save(_): + await self._thermostat.save_cfg() self._info_box.display_info_box( "Config saved", "All channel configs have been saved to flash."