From d5681ac6a0a8c481a528cbd0caafae58571d8e64 Mon Sep 17 00:00:00 2001 From: tomaszduda23 Date: Mon, 20 Jul 2026 20:29:00 +0200 Subject: [PATCH] [nrf52] add platformio deprecation warning (#17705) --- esphome/components/nrf52/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/esphome/components/nrf52/__init__.py b/esphome/components/nrf52/__init__.py index 5b3c250f34..2edc988ff8 100644 --- a/esphome/components/nrf52/__init__.py +++ b/esphome/components/nrf52/__init__.py @@ -283,6 +283,13 @@ def _validate_mcumgr(config): def _final_validate(config): + # Remove before 2027.2.0 + if CORE.using_toolchain_platformio: + _LOGGER.warning( + "The 'platformio' toolchain for nRF52 is deprecated and will be removed in ESPHome 2027.2.0. " + "Please use 'toolchain: sdk-nrf' instead." + ) + if CONF_DFU in config: _validate_mcumgr(config) if config[KEY_BOOTLOADER] == BOOTLOADER_ADAFRUIT: