Further integration load cleanups (#23104)

* Further integration load cleanups

* Fix tests

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

No files matched your search

+2 -2
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(