Skip to content

Commit

Permalink
Remove dead code from __main__.py (home-assistant#98694)
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Aug 20, 2023
1 parent 3fc043d commit e484066
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions homeassistant/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,6 @@ def get_arguments() -> argparse.Namespace:
return arguments


def cmdline() -> list[str]:
"""Collect path and arguments to re-execute the current hass instance."""
if os.path.basename(sys.argv[0]) == "__main__.py":
modulepath = os.path.dirname(sys.argv[0])
os.environ["PYTHONPATH"] = os.path.dirname(modulepath)
return [sys.executable, "-m", "homeassistant"] + list(sys.argv[1:])

return sys.argv


def check_threads() -> None:
"""Check if there are any lingering threads."""
try:
Expand Down

0 comments on commit e484066

Please sign in to comment.