Remove index ()

* Remove index

* Remove emnumerate
pull/21313/head
Fabian Affolter 2019-02-22 14:11:07 +01:00 committed by Anders Melchiorsen
parent 3fcbc36abe
commit 3f29e91367
1 changed files with 2 additions and 2 deletions
homeassistant

View File

@ -160,8 +160,8 @@ def _load_file(hass, # type: HomeAssistant
sys.path.insert(0, hass.config.config_dir)
cache = hass.data[DATA_KEY] = {}
for index, path in enumerate('{}.{}'.format(base, comp_or_platform)
for base in base_paths):
for path in ('{}.{}'.format(base, comp_or_platform)
for base in base_paths):
try:
module = importlib.import_module(path)