fix build_codewoners

This commit is contained in:
Tomasz Duda 2024-10-29 17:43:48 +01:00
parent 7fb91e1797
commit 9a0f0d1fd1

View file

@ -5,7 +5,7 @@ from pathlib import Path
import sys import sys
from esphome.config import get_component, get_platform 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.core import CORE
from esphome.helpers import write_file_if_changed from esphome.helpers import write_file_if_changed
@ -39,7 +39,7 @@ parts = [BASE]
# Fake some directory so that get_component works # Fake some directory so that get_component works
CORE.config_path = str(root) 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) codeowners = defaultdict(list)