mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
parent
3fcbc36abe
commit
3f29e91367
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user