1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Support non-live database migration (#72433)

* Support non-live database migration

* Tweak startup order, add test

* Address review comments

* Fix typo

* Clarify comment about promoting dependencies

* Tweak

* Fix merge mistake

* Fix some tests

* Fix additional test

* Fix additional test

* Adjust tests

* Improve test coverage
This commit is contained in:
Erik Montnemery
2022-07-22 15:11:34 +02:00
committed by GitHub
parent 9d0a252ca7
commit fd6ffef52f
20 changed files with 993 additions and 61 deletions

View File

@@ -3,6 +3,7 @@ from unittest.mock import patch
import pytest
from homeassistant.helpers import recorder as recorder_helper
from homeassistant.setup import async_setup_component
from tests.components.blueprint.conftest import stub_blueprint_populate # noqa: F401
@@ -24,4 +25,5 @@ def recorder_url_mock():
async def test_setup(hass, mock_zeroconf, mock_get_source_ip):
"""Test setup."""
recorder_helper.async_initialize_recorder(hass)
assert await async_setup_component(hass, "default_config", {"foo": "bar"})