1
0
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:
Paulus Schoutsen
2014-11-30 23:14:08 -08:00
parent 5835d502c7
commit ed150b8ea5
19 changed files with 170 additions and 137 deletions

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