[ci] move import to function (#15440)

This commit is contained in:
Tomer27cz
2026-04-06 01:17:52 +02:00
committed by GitHub
parent f23843130e
commit f01762ea44
2 changed files with 3 additions and 5 deletions
+1 -3
View File
@@ -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)