From 752b7a2b368089c9107bf6b603a5e23993dc3f9c Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Thu, 15 Feb 2024 23:34:02 +0100 Subject: [PATCH] remove old keys --- esphome/components/nrf52/__init__.py | 8 +++++--- esphome/components/nrf52/const.py | 5 ----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/esphome/components/nrf52/__init__.py b/esphome/components/nrf52/__init__.py index 14b44a1ca7..4e889407cc 100644 --- a/esphome/components/nrf52/__init__.py +++ b/esphome/components/nrf52/__init__.py @@ -21,14 +21,16 @@ from esphome.components.zephyr import ( zephyr_set_core_data, zephyr_to_code, ) -from .boards_zephyr import BOARDS_ZEPHYR -from .const import ( +from esphome.components.zephyr.const import ( ZEPHYR_VARIANT_GENERIC, ZEPHYR_VARIANT_NRF_SDK, + KEY_ZEPHYR, +) +from .boards_zephyr import BOARDS_ZEPHYR +from .const import ( KEY_BOOTLOADER, BOOTLOADER_MCUBOOT, BOOTLOADER_ADAFRUIT, - KEY_ZEPHYR, ) # force import gpio to register pin schema diff --git a/esphome/components/nrf52/const.py b/esphome/components/nrf52/const.py index 5081cda451..952a394739 100644 --- a/esphome/components/nrf52/const.py +++ b/esphome/components/nrf52/const.py @@ -1,8 +1,3 @@ -KEY_ZEPHYR = "zephyr" -KEY_PRJ_CONF = "prj_conf" -KEY_OVERLAY = "overlay" KEY_BOOTLOADER = "bootloader" -ZEPHYR_VARIANT_GENERIC = "generic" -ZEPHYR_VARIANT_NRF_SDK = "nrf-sdk" BOOTLOADER_MCUBOOT = "mcuboot" BOOTLOADER_ADAFRUIT = "adafruit"