Make check ha config file work with custom config dir
parent
b59b42db2c
commit
da5823becb
|
@ -466,10 +466,9 @@ def async_check_ha_config_file(hass):
|
|||
import homeassistant.components.persistent_notification as pn
|
||||
|
||||
proc = yield from asyncio.create_subprocess_exec(
|
||||
sys.argv[0],
|
||||
'--script',
|
||||
'check_config',
|
||||
stdout=asyncio.subprocess.PIPE)
|
||||
sys.executable, '-m', 'homeassistant', '--script',
|
||||
'check_config', '--config', hass.config.config_dir,
|
||||
stdout=asyncio.subprocess.PIPE, loop=hass.loop)
|
||||
# Wait for the subprocess exit
|
||||
(stdout_data, dummy) = yield from proc.communicate()
|
||||
result = yield from proc.wait()
|
||||
|
|
Loading…
Reference in New Issue