Make the check_config script open issue_registry read only (#98545)
* Don't blow up if validators can't access the issue registry * Make the check_config script open issue_registry read only * Update tests/helpers/test_issue_registry.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
90b9764578
commit
7fcc2dd44e
6 changed files with 115 additions and 4 deletions
|
@ -19,6 +19,7 @@ from homeassistant.helpers import (
|
|||
area_registry as ar,
|
||||
device_registry as dr,
|
||||
entity_registry as er,
|
||||
issue_registry as ir,
|
||||
)
|
||||
from homeassistant.helpers.check_config import async_check_ha_config_file
|
||||
from homeassistant.util.yaml import Secrets
|
||||
|
@ -237,6 +238,7 @@ async def async_check_config(config_dir):
|
|||
await ar.async_load(hass)
|
||||
await dr.async_load(hass)
|
||||
await er.async_load(hass)
|
||||
await ir.async_load(hass, read_only=True)
|
||||
components = await async_check_ha_config_file(hass)
|
||||
await hass.async_stop(force=True)
|
||||
return components
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue