Print discovered devices name and hostname

This commit is contained in:
saveriol
2024-09-26 09:32:24 +02:00
committed by GitHub
parent d2b23b391e
commit 6aa65ee356

View File

@@ -313,6 +313,7 @@ for app in account["data"]["homeAppliances"]:
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)