From 958fddf953fcb5404549b1ca6f2a03ee91858886 Mon Sep 17 00:00:00 2001 From: atse Date: Fri, 23 Aug 2024 15:43:02 +0800 Subject: [PATCH] ip -> host --- pytec/tec_qt.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 687ee9d..c1a32a1 100755 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -30,9 +30,9 @@ def get_argparser(): "--connect", default=None, action="store_true", - help="Automatically connect to the specified Thermostat in IP:port format", + help="Automatically connect to the specified Thermostat in host:port format", ) - parser.add_argument("IP", metavar="ip", default=None, nargs="?") + parser.add_argument("HOST", metavar="host", default=None, nargs="?") parser.add_argument("PORT", metavar="port", default=None, nargs="?") parser.add_argument( "-l", @@ -157,8 +157,8 @@ class MainWindow(QtWidgets.QMainWindow): self.loading_spinner.hide() if args.connect: - if args.IP: - self.host_set_line.setText(args.IP) + if args.HOST: + self.host_set_line.setText(args.HOST) if args.PORT: self.port_set_spin.setValue(int(args.PORT)) self.connect_btn.click()