mirror of
https://github.com/home-assistant/core.git
synced 2025-04-19 14:57:52 +00:00
Fix implicit-return in macos script (#122945)
This commit is contained in:
parent
e734971d33
commit
b609f8e962
@ -44,7 +44,7 @@ def uninstall_osx():
|
||||
print("Home Assistant has been uninstalled.")
|
||||
|
||||
|
||||
def run(args):
|
||||
def run(args: list[str]) -> int:
|
||||
"""Handle OSX commandline script."""
|
||||
commands = "install", "uninstall", "restart"
|
||||
if not args or args[0] not in commands:
|
||||
@ -63,3 +63,5 @@ def run(args):
|
||||
time.sleep(0.5)
|
||||
install_osx()
|
||||
return 0
|
||||
|
||||
raise ValueError(f"Invalid command {args[0]}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user