[ci] move import to function (#15440)
This commit is contained in:
1 parent
f23843130e
commit
f01762ea44
2 files changed
+3
-5
No files matched your search
+1
-3
@@ -15,8 +15,6 @@ from typing import Any
|
||||
|
||||
import colorama
|
||||
|
||||
from esphome.loader import get_platform
|
||||
|
||||
root_path = os.path.abspath(os.path.normpath(os.path.join(__file__, "..", "..")))
|
||||
basepath = os.path.join(root_path, "esphome")
|
||||
temp_folder = os.path.join(root_path, ".temp")
|
||||
@@ -644,7 +642,7 @@ def get_all_dependencies(
|
||||
PLATFORM_HOST,
|
||||
)
|
||||
from esphome.core import CORE
|
||||
from esphome.loader import get_component
|
||||
from esphome.loader import get_component, get_platform
|
||||
|
||||
all_components: set[str] = set(component_names)
|
||||
|
||||
|
||||
Reference in new issue
Block a user