mirror of
https://github.com/esphome/esphome.git
synced 2025-06-18 14:25:48 +01:00
[spi] relay on KEY_TARGET_PLATFORM as the other platforms does (#8066)
This commit is contained in:
@ -85,12 +85,12 @@ def load_components():
|
||||
|
||||
|
||||
# pylint: disable=wrong-import-position
|
||||
from esphome.const import CONF_TYPE, KEY_CORE
|
||||
from esphome.const import CONF_TYPE, KEY_CORE, KEY_TARGET_PLATFORM
|
||||
from esphome.core import CORE
|
||||
|
||||
# pylint: enable=wrong-import-position
|
||||
|
||||
CORE.data[KEY_CORE] = {}
|
||||
CORE.data[KEY_CORE] = {KEY_TARGET_PLATFORM: None}
|
||||
load_components()
|
||||
|
||||
# Import esphome after loading components (so schema is tracked)
|
||||
|
Reference in New Issue
Block a user