Revert custom component loading logic (#14327)

* Revert custom component loading logic

* Lint

* Fix tests

* Guard for infinite inserts into sys.path
This commit is contained in:
Paulus Schoutsen authored and Paulus Schoutsen committed 2018-05-07 10:01:22 -04:00
1 parent c4ec2e3434
commit 6a74fa344d
8 files changed
+84 -101

No files matched your search

+4
View File
@@ -120,3 +120,7 @@ async def test_custom_component_name(hass):
comp = loader.get_component(hass, 'light.test')
assert comp.__name__ == 'custom_components.light.test'
assert comp.__package__ == 'custom_components.light'
# Test custom components is mounted
from custom_components.test_package import TEST
assert TEST == 5