mirror of
https://github.com/esphome/esphome.git
synced 2026-10-03 09:46:03 +00:00
[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:
co-authored by
J. Nick Koston
parent
3fb4a9cb3a
commit
b4f2334b99
@@ -5,3 +5,4 @@ esphome:
|
||||
|
||||
logger:
|
||||
level: DEBUG
|
||||
hardware_uart: UART0
|
||||
|
||||
@@ -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({})
|
||||
Reference in New Issue
Block a user