Split bootstrap into bs + setup (#6416)

* Split bootstrap into bs + setup

* Lint
This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2017-03-05 10:41:54 +01:00
1 parent bdf948d866
commit 2650c73a89
171 files changed
+972 -959

No files matched your search

+2 -2
View File
@@ -13,7 +13,7 @@ from aiohttp import web
from aiohttp.test_utils import unused_port as get_test_instance_port # noqa
from homeassistant import core as ha, loader
from homeassistant.bootstrap import setup_component, DATA_SETUP
from homeassistant.setup import setup_component, DATA_SETUP
from homeassistant.config import async_process_component_config
from homeassistant.helpers.dispatcher import async_dispatcher_send
from homeassistant.helpers.entity import ToggleEntity
@@ -435,7 +435,7 @@ def assert_setup_component(count, domain=None):
- domain: The domain to count is optional. It can be automatically
determined most of the time
Use as a context manager aroung bootstrap.setup_component
Use as a context manager aroung setup.setup_component
with assert_setup_component(0) as result_config:
setup_component(hass, domain, start_config)
# using result_config is optional