mirror of
https://github.com/home-assistant/core.git
synced 2026-04-27 12:14:35 +01:00
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:
@@ -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"})
|
||||
|
||||
Reference in New Issue
Block a user