1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

String formatting and max line length - Part 7 (#84532)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Franck Nijhof
2022-12-27 11:18:56 +01:00
committed by GitHub
parent 3149c52be1
commit d4f69a3652
40 changed files with 249 additions and 110 deletions

View File

@@ -33,7 +33,7 @@ def run(args):
# Disable logging
logging.getLogger("homeassistant.core").setLevel(logging.CRITICAL)
parser = argparse.ArgumentParser(description=("Run a Home Assistant benchmark."))
parser = argparse.ArgumentParser(description="Run a Home Assistant benchmark.")
parser.add_argument("name", choices=BENCHMARKS)
parser.add_argument("--script", choices=["benchmark"])

View File

@@ -12,7 +12,7 @@ from homeassistant.core import HomeAssistant
def run(args):
"""Handle ensure config commandline script."""
parser = argparse.ArgumentParser(
description=("Ensure a Home Assistant config exists, creates one if necessary.")
description="Ensure a Home Assistant config exists, creates one if necessary."
)
parser.add_argument(
"-c",

View File

@@ -32,10 +32,7 @@ def install_osx():
os.popen(f"launchctl load -w -F {path}")
print(
"Home Assistant has been installed. \
Open it here: http://localhost:8123"
)
print("Home Assistant has been installed. Open it here: http://localhost:8123")
def uninstall_osx():