Do not notify config errors during logging (#104466)

This commit is contained in:
Jan Bouwhuis 2023-11-24 21:34:09 +01:00 committed by GitHub
parent 4700ad7817
commit 9962301b42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 8 deletions

View file

@ -719,7 +719,7 @@ async def test_setup_hass_invalid_core_config(
event_loop: asyncio.AbstractEventLoop,
) -> None:
"""Test it works."""
with patch("homeassistant.config.async_notify_setup_error") as mock_notify:
with patch("homeassistant.bootstrap.async_notify_setup_error") as mock_notify:
hass = await bootstrap.async_setup_hass(
runner.RuntimeConfig(
config_dir=get_test_config_dir(),