mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Add small time delay to restart-osx command
This commit is contained in:
parent
70a528c04b
commit
3046bfce7b
3
homeassistant/__main__.py
Normal file → Executable file
3
homeassistant/__main__.py
Normal file → Executable file
@ -7,6 +7,7 @@ import sys
|
|||||||
import threading
|
import threading
|
||||||
import os
|
import os
|
||||||
import argparse
|
import argparse
|
||||||
|
import time
|
||||||
|
|
||||||
from homeassistant import bootstrap
|
from homeassistant import bootstrap
|
||||||
import homeassistant.config as config_util
|
import homeassistant.config as config_util
|
||||||
@ -299,6 +300,8 @@ def main():
|
|||||||
return 0
|
return 0
|
||||||
if args.restart_osx:
|
if args.restart_osx:
|
||||||
uninstall_osx()
|
uninstall_osx()
|
||||||
|
# A small delay is needed on systems to let the unload finish.
|
||||||
|
time.sleep(0.5)
|
||||||
install_osx()
|
install_osx()
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user