forked from M-Labs/thermostat
Sep. line
This commit is contained in:
parent
87d09d8c7f
commit
baf629ece7
@ -247,10 +247,9 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
self.conn_menu.host_set_line.setEnabled(False)
|
self.conn_menu.host_set_line.setEnabled(False)
|
||||||
self.conn_menu.port_set_spin.setEnabled(False)
|
self.conn_menu.port_set_spin.setEnabled(False)
|
||||||
|
|
||||||
host, port = (
|
host = self.conn_menu.host_set_line.text()
|
||||||
self.conn_menu.host_set_line.text(),
|
port = self.conn_menu.port_set_spin.value()
|
||||||
self.conn_menu.port_set_spin.value(),
|
|
||||||
)
|
|
||||||
self._connecting_task = asyncio.create_task(
|
self._connecting_task = asyncio.create_task(
|
||||||
asyncio.wait_for(
|
asyncio.wait_for(
|
||||||
self.thermostat.start_session(host=host, port=port), timeout=5
|
self.thermostat.start_session(host=host, port=port), timeout=5
|
||||||
|
Loading…
Reference in New Issue
Block a user