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:00:40 +01:00
parent b3c6af9a20
commit 55dbbe7864

View File

@ -192,8 +192,8 @@ PRELOAD_CONFIG_SCHEMA = cv.Schema(
def _is_target_platform(name):
from esphome.loader import get_component
try:
from esphome.loader import get_component
if get_component(name, True).is_target_platform:
return True
except KeyError: