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:
committed by
Pascal Vizeli
parent
e60d066514
commit
5c95c53c6c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user