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]