Bootstrap / Component setup async (#6264)
* Bootstrap / Entiy setup async * Cleanup add_job stuff / return task/future object * Address paulus comments / part 1 * fix install pip * Cleanup bootstrap / move config stuff to config.py * Make demo async * Further bootstrap improvement * Address Martin's comments * Fix initial tests * Fix final tests * Fix bug with prepare loader * Remove no longer needed things * Log error when invalid config * More cleanup * Cleanups platform events & fix lint * Use a non blocking add_entities callback for platform * Fix Autoamtion is setup befor entity is ready * Better automation fix * Address paulus comments * Typo * fix lint * rename functions * fix tests * fix test * change exceptions * fix spell
This commit is contained in:
parent
383b0914b3
commit
41f558b181
109 changed files with 764 additions and 848 deletions
|
@ -8,7 +8,7 @@ from homeassistant.const import EVENT_COMPONENT_LOADED
|
|||
from homeassistant.bootstrap import async_setup_component, ATTR_COMPONENT
|
||||
from homeassistant.components import config
|
||||
|
||||
from tests.common import mock_http_component, mock_coro
|
||||
from tests.common import mock_http_component, mock_coro, mock_component
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
|
@ -27,7 +27,7 @@ def test_config_setup(hass, loop):
|
|||
@asyncio.coroutine
|
||||
def test_load_on_demand_already_loaded(hass, test_client):
|
||||
"""Test getting suites."""
|
||||
hass.config.components.add('zwave')
|
||||
mock_component(hass, 'zwave')
|
||||
|
||||
with patch.object(config, 'SECTIONS', []), \
|
||||
patch.object(config, 'ON_DEMAND', ['zwave']), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue