mirror of
https://github.com/esphome/esphome.git
synced 2024-12-25 06:54:52 +01:00
adjust to new implementation of copy_files
This commit is contained in:
parent
03855f9583
commit
9a65537591
2 changed files with 9 additions and 2 deletions
|
@ -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()
|
||||||
|
|
|
@ -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]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue