Raise and suppress stack trace when reloading yaml fails (#102410)
* Allow async_integration_yaml_config to raise * Docstr - split check * Implement as wrapper, return dataclass * Fix setup error handling * Fix reload test mock * Move log_messages to error handler * Remove unreachable code * Remove config test helper * Refactor and ensure notifications during setup * Remove redundat error, adjust tests notifications * Fix patch * Apply suggestions from code review Co-authored-by: Erik Montnemery <erik@montnemery.com> * Follow up comments * Add call_back decorator * Split long lines * Update exception abbreviations --------- Co-authored-by: Erik Montnemery <erik@montnemery.com>
This commit is contained in:
parent
852fb58ca8
commit
af71c2bb45
15 changed files with 954 additions and 195 deletions
|
@ -1013,7 +1013,10 @@ async def test_bootstrap_dependencies(
|
|||
with patch(
|
||||
"homeassistant.setup.loader.async_get_integrations",
|
||||
side_effect=mock_async_get_integrations,
|
||||
), patch("homeassistant.config.async_process_component_config", return_value={}):
|
||||
), patch(
|
||||
"homeassistant.config.async_process_component_config",
|
||||
return_value=config_util.IntegrationConfigInfo({}, []),
|
||||
):
|
||||
bootstrap.async_set_domains_to_be_loaded(hass, {integration})
|
||||
await bootstrap.async_setup_multi_components(hass, {integration}, {})
|
||||
await hass.async_block_till_done()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue