adjust to new implementation of copy_files

This commit is contained in:
Tomasz Duda 2024-10-24 18:31:35 +02:00
parent 03855f9583
commit 9a65537591
2 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,9 @@
import esphome.codegen as cg import esphome.codegen as cg
from esphome.components.zephyr import zephyr_set_core_data, zephyr_to_code from esphome.components.zephyr import (
copy_files as zephyr_copy_files,
zephyr_set_core_data,
zephyr_to_code,
)
from esphome.components.zephyr.const import ( from esphome.components.zephyr.const import (
BOOTLOADER_MCUBOOT, BOOTLOADER_MCUBOOT,
KEY_BOOTLOADER, KEY_BOOTLOADER,
@ -100,3 +104,7 @@ async def to_code(config):
cg.add_platformio_option("board_upload.wait_for_upload_port", "true") cg.add_platformio_option("board_upload.wait_for_upload_port", "true")
zephyr_to_code(conf) zephyr_to_code(conf)
def copy_files():
zephyr_copy_files()

View file

@ -135,7 +135,6 @@ def zephyr_add_cdc_acm(config, id):
) )
# Called by writer.py
def copy_files(): def copy_files():
want_opts = CORE.data[KEY_ZEPHYR][KEY_PRJ_CONF] want_opts = CORE.data[KEY_ZEPHYR][KEY_PRJ_CONF]