1
0
mirror of https://github.com/esphome/esphome.git synced 2025-06-20 23:35:42 +01:00

[spi] relay on KEY_TARGET_PLATFORM as the other platforms does ()

This commit is contained in:
tomaszduda23
2025-01-12 23:15:39 +01:00
committed by GitHub
parent 40bee2a854
commit 731fb1d172
3 changed files with 5 additions and 9 deletions

@ -5,7 +5,7 @@ from pathlib import Path
import sys
from esphome.config import get_component, get_platform
from esphome.const import KEY_CORE, KEY_TARGET_FRAMEWORK
from esphome.const import KEY_CORE, KEY_TARGET_FRAMEWORK, KEY_TARGET_PLATFORM
from esphome.core import CORE
from esphome.helpers import write_file_if_changed
@ -39,7 +39,7 @@ parts = [BASE]
# Fake some directory so that get_component works
CORE.config_path = str(root)
CORE.data[KEY_CORE] = {KEY_TARGET_FRAMEWORK: None}
CORE.data[KEY_CORE] = {KEY_TARGET_FRAMEWORK: None, KEY_TARGET_PLATFORM: None}
codeowners = defaultdict(list)