Renamed test to ha_test because of conflict with built-in python test package

This commit is contained in:
Paulus Schoutsen committed 2014-11-30 23:15:18 -08:00
1 parent 5835d502c7
commit ed150b8ea5
19 files changed
+170 -137

No files matched your search

+4 -1
View File
@@ -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]))