Add check_config API (#5898)

* Add check_config API

* Add config panel to default config

* Add tests

* Lint

* lint
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2017-02-12 11:31:46 -08:00
1 parent dc6a28a8b2
commit dab6d011ca
7 files changed
+107 -28

No files matched your search

+2 -1
View File
@@ -6,6 +6,7 @@ from homeassistant.components.frontend import register_built_in_panel
DOMAIN = 'config'
DEPENDENCIES = ['http']
SECTIONS = ('core', 'hassbian')
@asyncio.coroutine
@@ -13,7 +14,7 @@ def async_setup(hass, config):
"""Setup the hassbian component."""
register_built_in_panel(hass, 'config', 'Configuration', 'mdi:settings')
for panel_name in ('hassbian',):
for panel_name in SECTIONS:
panel = yield from async_prepare_setup_platform(hass, config, DOMAIN,
panel_name)