1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Further integration load cleanups (#23104)

* Further integration load cleanups

* Fix tests

* Unflake MQTT vacuum command test
This commit is contained in:
Paulus Schoutsen
2019-04-14 19:07:05 -07:00
committed by GitHub
parent 930f75220c
commit d722f4d64a
14 changed files with 160 additions and 237 deletions

View File

@@ -7,7 +7,7 @@ from homeassistant import core, loader
from homeassistant.components import switch
from homeassistant.const import STATE_ON, STATE_OFF, CONF_PLATFORM
from tests.common import get_test_home_assistant
from tests.common import get_test_home_assistant, mock_entity_platform
from tests.components.switch import common
@@ -80,7 +80,7 @@ class TestSwitch(unittest.TestCase):
test_platform = loader.get_component(self.hass, 'test.switch')
test_platform.init(True)
loader.set_component(self.hass, 'switch.test2', test_platform)
mock_entity_platform(self.hass, 'switch.test2', test_platform)
test_platform.init(False)
assert setup_component(