mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Merge pull request #1192 from i-c/add-delay-to-launchtl-load
Add delay to launchtl load
This commit is contained in:
commit
40da28a0c7
@ -7,6 +7,7 @@ import sys
|
||||
import threading
|
||||
import os
|
||||
import argparse
|
||||
import time
|
||||
|
||||
from homeassistant import bootstrap
|
||||
import homeassistant.config as config_util
|
||||
@ -299,6 +300,8 @@ def main():
|
||||
return 0
|
||||
if args.restart_osx:
|
||||
uninstall_osx()
|
||||
# A small delay is needed on some systems to let the unload finish.
|
||||
time.sleep(0.5)
|
||||
install_osx()
|
||||
return 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user