Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions homeassistant/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 enumerate('{}.{}'.format(base, comp_or_platform)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't need the index we don't need to use enumerate.

for base in base_paths):
try:
module = importlib.import_module(path)

Expand Down