mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Remove dead code from __main__.py (#98694)
This commit is contained in:
parent
3fc043d99e
commit
e484066f2b
@ -148,16 +148,6 @@ def get_arguments() -> argparse.Namespace:
|
|||||||
return arguments
|
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:
|
def check_threads() -> None:
|
||||||
"""Check if there are any lingering threads."""
|
"""Check if there are any lingering threads."""
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user