From baf629ece7451c853347b4dc9d743a0972f522ed Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 22 Aug 2024 15:47:44 +0800 Subject: [PATCH] Sep. line --- pytec/tec_qt.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 1bb79ec..2a1e21f 100755 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -247,10 +247,9 @@ class MainWindow(QtWidgets.QMainWindow): self.conn_menu.host_set_line.setEnabled(False) self.conn_menu.port_set_spin.setEnabled(False) - host, port = ( - self.conn_menu.host_set_line.text(), - self.conn_menu.port_set_spin.value(), - ) + host = self.conn_menu.host_set_line.text() + port = self.conn_menu.port_set_spin.value() + self._connecting_task = asyncio.create_task( asyncio.wait_for( self.thermostat.start_session(host=host, port=port), timeout=5