mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 02:00:55 +00:00
clean up
This commit is contained in:
parent
55dbbe7864
commit
a614bb03a9
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user