mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Renamed test to ha_test because of conflict with built-in python test package
This commit is contained in:
@@ -62,9 +62,12 @@ def prepare(hass):
|
||||
# just might output more errors.
|
||||
for fil in os.listdir(custom_path):
|
||||
if os.path.isdir(os.path.join(custom_path, fil)):
|
||||
AVAILABLE_COMPONENTS.append('custom_components.{}'.format(fil))
|
||||
if fil != '__pycache__':
|
||||
AVAILABLE_COMPONENTS.append(
|
||||
'custom_components.{}'.format(fil))
|
||||
|
||||
else:
|
||||
# For files we will strip out .py extension
|
||||
AVAILABLE_COMPONENTS.append(
|
||||
'custom_components.{}'.format(fil[0:-3]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user