[web_server] Use centralized length constants for buffer sizing

This commit is contained in:
J. Nick Koston
2026-01-07 20:01:54 -10:00
parent 40cd6aa18b
commit aa3bed7089

View File

@@ -16,7 +16,7 @@ namespace esphome {
// Maximum device name length - keep in sync with validate_hostname() in esphome/core/config.py
static constexpr size_t ESPHOME_DEVICE_NAME_MAX_LEN = 31;
// Maximum friendly name length for entities and sub-devices - keep in sync with cv.Length(max=120) in
// Maximum friendly name length for entities and sub-devices - keep in sync with FRIENDLY_NAME_MAX_LEN in
// esphome/core/config.py
static constexpr size_t ESPHOME_FRIENDLY_NAME_MAX_LEN = 120;