mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 17:48:26 +00:00
Make check ha config file work with custom config dir
This commit is contained in:
parent
b59b42db2c
commit
da5823becb
@ -466,10 +466,9 @@ def async_check_ha_config_file(hass):
|
|||||||
import homeassistant.components.persistent_notification as pn
|
import homeassistant.components.persistent_notification as pn
|
||||||
|
|
||||||
proc = yield from asyncio.create_subprocess_exec(
|
proc = yield from asyncio.create_subprocess_exec(
|
||||||
sys.argv[0],
|
sys.executable, '-m', 'homeassistant', '--script',
|
||||||
'--script',
|
'check_config', '--config', hass.config.config_dir,
|
||||||
'check_config',
|
stdout=asyncio.subprocess.PIPE, loop=hass.loop)
|
||||||
stdout=asyncio.subprocess.PIPE)
|
|
||||||
# Wait for the subprocess exit
|
# Wait for the subprocess exit
|
||||||
(stdout_data, dummy) = yield from proc.communicate()
|
(stdout_data, dummy) = yield from proc.communicate()
|
||||||
result = yield from proc.wait()
|
result = yield from proc.wait()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user