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:
1 parent
5d96751168
commit
83d300fd11
50 files changed
+315
-392
No files matched your search
@@ -116,7 +116,7 @@ class TestGenericThermostatHeaterSwitching(unittest.TestCase):
|
||||
|
||||
def test_heater_switch(self):
|
||||
"""Test heater switching test switch."""
|
||||
platform = loader.get_component('switch.test')
|
||||
platform = loader.get_component(self.hass, 'switch.test')
|
||||
platform.init()
|
||||
self.switch_1 = platform.DEVICES[1]
|
||||
assert setup_component(self.hass, switch.DOMAIN, {'switch': {
|
||||
|
||||
Reference in new issue
Block a user