Bugfix async log handler (#4954)
* Bugfix async log handler * fix boostrap test * Use hass.data for store handler and cleanup on async_stop * Update bootstrap.py
This commit is contained in:
parent
b08b376aa7
commit
50c8224365
5 changed files with 23 additions and 9 deletions
|
@ -231,7 +231,8 @@ def check(config_path):
|
|||
yaml.yaml.SafeLoader.add_constructor('!secret', yaml._secret_yaml)
|
||||
|
||||
try:
|
||||
bootstrap.from_config_file(config_path, skip_pip=True)
|
||||
with patch('homeassistant.util.logging.AsyncHandler._process'):
|
||||
bootstrap.from_config_file(config_path, skip_pip=True)
|
||||
res['secret_cache'] = dict(yaml.__SECRET_CACHE)
|
||||
except Exception as err: # pylint: disable=broad-except
|
||||
print(color('red', 'Fatal error while loading config:'), str(err))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue