mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Add config component and hassbian example panel (#5868)
* Add hassbian panel * Rename to generic config panel * Allow loading hassbian as test * Add tests * Update frontend * Lint * Lint
This commit is contained in:
18
tests/components/config/test_init.py
Normal file
18
tests/components/config/test_init.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""Test config init."""
|
||||
import pytest
|
||||
|
||||
from homeassistant.bootstrap import async_setup_component
|
||||
|
||||
from tests.common import mock_http_component
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def stub_http(hass):
|
||||
"""Stub the HTTP component."""
|
||||
mock_http_component(hass)
|
||||
|
||||
|
||||
def test_config_setup(hass, loop):
|
||||
"""Test it sets up hassbian."""
|
||||
loop.run_until_complete(async_setup_component(hass, 'config', {}))
|
||||
assert 'config' in hass.config.components
|
||||
Reference in New Issue
Block a user