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:
@@ -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"])
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user