mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Custom component loading cleanup (#14211)
* Clean up custom component loading * Fix some tests * Fix some stuff * Make imports work again * Fix tests * Remove debug print * Lint
This commit is contained in:
committed by
Pascal Vizeli
parent
5d96751168
commit
83d300fd11
@@ -16,7 +16,7 @@ class TestScene(unittest.TestCase):
|
||||
def setUp(self): # pylint: disable=invalid-name
|
||||
"""Setup things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
test_light = loader.get_component('light.test')
|
||||
test_light = loader.get_component(self.hass, 'light.test')
|
||||
test_light.init()
|
||||
|
||||
self.assertTrue(setup_component(self.hass, light.DOMAIN, {
|
||||
|
||||
Reference in New Issue
Block a user