[nrf52] Use full newlib when the logger is enabled, disable unused serial and printk (#19766)

Co-authored-by: J. Nick Koston <nick@home-assistant.io>
This commit is contained in:
tomaszduda23
2026-09-28 16:57:00 +02:00
committed by GitHub
co-authored by J. Nick Koston
parent 3fb4a9cb3a
commit b4f2334b99
9 changed files with 38 additions and 7 deletions
@@ -5,3 +5,4 @@ esphome:
logger:
level: DEBUG
hardware_uart: UART0
+12
View File
@@ -0,0 +1,12 @@
"""Tests for the nRF52 configuration validation."""
import pytest
from esphome.components.nrf52 import _detect_bootloader
import esphome.config_validation as cv
def test_detect_bootloader_reports_a_missing_board() -> None:
"""The bootloader check runs before the schema, so it reports the missing key."""
with pytest.raises(cv.Invalid, match="'board' is a required option"):
_detect_bootloader({})