mirror of
https://github.com/esphome/esphome.git
synced 2026-08-31 01:56:01 +00:00
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
7 lines
373 B
Python
7 lines
373 B
Python
# Importing `esphome.loader` here installs the component-alias
|
|
# ``sys.meta_path`` finder before any submodule lookup runs. Without this,
|
|
# `from esphome.components import <legacy_alias>` from a fresh interpreter
|
|
# can race the finder install and raise ImportError, since the legacy
|
|
# alias dir no longer exists on disk.
|
|
from esphome import loader as _loader # noqa: F401
|