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:
1 parent
2b2c1562a5
commit
44311193ef
11 files changed
+273
-9
No files matched your search
@@ -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