1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-25 11:19:30 +01:00

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
2018-05-07 05:25:48 -04:00
committed by Pascal Vizeli
parent e60d066514
commit 5c95c53c6c
8 changed files with 84 additions and 101 deletions

View File

@@ -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)