From d2b23b391ea67026c5420c1ab66cf40896f07f5a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 25 Sep 2024 15:13:54 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- hc-login.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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" +)