1
0
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:
Paulus Schoutsen
2017-02-11 17:29:05 -08:00
committed by GitHub
parent 2b2c1562a5
commit 44311193ef
11 changed files with 273 additions and 9 deletions

View 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