From 6aa65ee35648f07820791b40ff2b267d4dca2e7b Mon Sep 17 00:00:00 2001 From: saveriol Date: Thu, 26 Sep 2024 09:32:24 +0200 Subject: [PATCH] Print discovered devices name and hostname --- hc-login.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hc-login.py b/hc-login.py index abf216d..25f6acb 100755 --- a/hc-login.py +++ b/hc-login.py @@ -313,6 +313,7 @@ def b64random(num): machine = xml2json(features, description) config["description"] = machine["description"] config["features"] = augment_device_features(machine["features"]) + print("Discovered device: "+config["name"]+" - Device hostname: "+config["host"]) with open(devicefile, "w") as f: json.dump(configs, f, ensure_ascii=True, indent=4)