Renamed test to ha_test because of conflict with built-in python test package
This commit is contained in:
1 parent
5835d502c7
commit
ed150b8ea5
19 files changed
+170
-137
No files matched your search
@@ -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