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

@@ -21,6 +21,7 @@ def init(empty=False):
]
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
async def async_setup_platform(hass, config, async_add_devices_callback,
discovery_info=None):
"""Find and return test switches."""
add_devices_callback(DEVICES)
async_add_devices_callback(DEVICES)