Reject boot_logs without a buffer and exercise per-tag boot levels on ESP8266

This commit is contained in:
J. Nick Koston
2026-10-13 10:48:07 -10:00
parent e411e19ab0
commit ead5824302
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -220,6 +220,13 @@ def validate_local_no_higher_than_global(config: ConfigType) -> ConfigType:
[CONF_BOOT_LOG_LEVEL],
)
)
if config[CONF_BOOT_LOGS] and config[CONF_BOOT_LOG_BUFFER_SIZE] == 0:
errs.append(
cv.Invalid(
"boot_logs has no effect without boot_log_buffer_size",
[CONF_BOOT_LOGS],
)
)
if errs:
raise cv.MultipleInvalid(errs)
return config
@@ -9,3 +9,5 @@ esphome:
logger:
id: logger_id
boot_log_buffer_size: 2kB
boot_logs:
wifi: DEBUG