Fix implicit-return in macos script (#122945)
This commit is contained in:
parent
e734971d33
commit
b609f8e962
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue