1
0
mirror of https://github.com/esphome/esphome.git synced 2025-01-31 02:00:55 +00:00
This commit is contained in:
Tomasz Duda 2025-01-13 00:13:28 +01:00
parent 55dbbe7864
commit a614bb03a9

View File

@ -193,6 +193,7 @@ PRELOAD_CONFIG_SCHEMA = cv.Schema(
def _is_target_platform(name): def _is_target_platform(name):
from esphome.loader import get_component from esphome.loader import get_component
try: try:
if get_component(name, True).is_target_platform: if get_component(name, True).is_target_platform:
return True return True