From 9a65537591bda3c09d8f932dd688036d9cf14d64 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Thu, 24 Oct 2024 18:31:35 +0200 Subject: [PATCH] adjust to new implementation of copy_files --- esphome/components/nrf52/__init__.py | 10 +++++++++- esphome/components/zephyr/__init__.py | 1 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/esphome/components/nrf52/__init__.py b/esphome/components/nrf52/__init__.py index cdb74d32f0..c16ed607f7 100644 --- a/esphome/components/nrf52/__init__.py +++ b/esphome/components/nrf52/__init__.py @@ -1,5 +1,9 @@ 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 ( BOOTLOADER_MCUBOOT, KEY_BOOTLOADER, @@ -100,3 +104,7 @@ async def to_code(config): cg.add_platformio_option("board_upload.wait_for_upload_port", "true") zephyr_to_code(conf) + + +def copy_files(): + zephyr_copy_files() diff --git a/esphome/components/zephyr/__init__.py b/esphome/components/zephyr/__init__.py index 67edb1772a..55e33339b9 100644 --- a/esphome/components/zephyr/__init__.py +++ b/esphome/components/zephyr/__init__.py @@ -135,7 +135,6 @@ def zephyr_add_cdc_acm(config, id): ) -# Called by writer.py def copy_files(): want_opts = CORE.data[KEY_ZEPHYR][KEY_PRJ_CONF]