mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Wait for registries to load at startup (#46265)
* Wait for registries to load at startup * Don't decorate new functions with @bind_hass * Fix typing errors in zwave_js * Load registries in async_test_home_assistant * Tweak * Typo * Tweak * Explicitly silence mypy errors * Fix tests * Fix more tests * Fix test * Improve docstring * Wait for registries to load
This commit is contained in:
@@ -3,6 +3,8 @@ from asyncio import Event
|
||||
from datetime import timedelta
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.bootstrap import async_from_config_dict
|
||||
from homeassistant.components import sensor
|
||||
from homeassistant.const import (
|
||||
@@ -403,6 +405,7 @@ async def test_setup_valid_device_class(hass):
|
||||
assert "device_class" not in state.attributes
|
||||
|
||||
|
||||
@pytest.mark.parametrize("load_registries", [False])
|
||||
async def test_creating_sensor_loads_group(hass):
|
||||
"""Test setting up template sensor loads group component first."""
|
||||
order = []
|
||||
|
||||
Reference in New Issue
Block a user