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
b3c6af9a20
commit
55dbbe7864
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user