Move core fundamental components into bootstrap (#105560)

Co-authored-by: Erik <erik@montnemery.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Franck Nijhof 2024-01-22 20:09:48 +01:00 committed by GitHub
parent 31ef034c3f
commit 80207835d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 80 additions and 40 deletions

View file

@ -3,6 +3,7 @@ from unittest.mock import patch
import pytest
from homeassistant import bootstrap
from homeassistant.core import HomeAssistant
from homeassistant.helpers import recorder as recorder_helper
from homeassistant.setup import async_setup_component
@ -34,4 +35,9 @@ async def test_setup(
) -> None:
"""Test setup."""
recorder_helper.async_initialize_recorder(hass)
# default_config needs the homeassistant integration, assert it will be
# automatically setup by bootstrap and set it up manually for this test
assert "homeassistant" in bootstrap.CORE_INTEGRATIONS
assert await async_setup_component(hass, "homeassistant", {"foo": "bar"})
assert await async_setup_component(hass, "default_config", {"foo": "bar"})