diff --git a/hc-login.py b/hc-login.py index 763db13..abf216d 100755 --- a/hc-login.py +++ b/hc-login.py @@ -314,7 +314,11 @@ for app in account["data"]["homeAppliances"]: config["description"] = machine["description"] config["features"] = augment_device_features(machine["features"]) -with open(devicefile, 'w') as f: +with open(devicefile, "w") as f: json.dump(configs, f, ensure_ascii=True, indent=4) -print("Success. You can now edit "+devicefile+", if needed, and run hc2mqtt.py or start Home Assistant addon again") +print( + "Success. You can now edit " + + devicefile + + ", if needed, and run hc2mqtt.py or start Home Assistant addon again" +)