Remove index (#21304)

* Remove index

* Remove emnumerate
This commit is contained in:
Fabian Affolter 2019-02-22 14:11:07 +01:00 committed by Anders Melchiorsen
parent 3fcbc36abe
commit 3f29e91367

View File

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