parent
23cb579f9f
commit
b0d893afc9
11 changed files with 69 additions and 84 deletions
|
@ -12,7 +12,7 @@ from homeassistant.core import callback
|
|||
from homeassistant.const import (
|
||||
EVENT_HOMEASSISTANT_START, EVENT_COMPONENT_LOADED)
|
||||
import homeassistant.config as config_util
|
||||
from homeassistant import setup, loader
|
||||
from homeassistant import setup
|
||||
import homeassistant.util.dt as dt_util
|
||||
from homeassistant.helpers.config_validation import (
|
||||
PLATFORM_SCHEMA, PLATFORM_SCHEMA_BASE)
|
||||
|
@ -502,8 +502,6 @@ class TestSetup:
|
|||
MockModule('disabled_component', setup=lambda hass, config: False))
|
||||
|
||||
assert not setup.setup_component(self.hass, 'disabled_component', {})
|
||||
assert loader.get_component(
|
||||
self.hass, 'disabled_component') is not None
|
||||
assert 'disabled_component' not in self.hass.config.components
|
||||
|
||||
self.hass.data.pop(setup.DATA_SETUP)
|
||||
|
@ -512,8 +510,6 @@ class TestSetup:
|
|||
MockModule('disabled_component', setup=lambda hass, config: True))
|
||||
|
||||
assert setup.setup_component(self.hass, 'disabled_component', {})
|
||||
assert loader.get_component(
|
||||
self.hass, 'disabled_component') is not None
|
||||
assert 'disabled_component' in self.hass.config.components
|
||||
|
||||
def test_all_work_done_before_start(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue