mirror of
https://github.com/esphome/esphome.git
synced 2026-01-09 11:40:50 -07:00
[web_server] Use centralized length constants for buffer sizing
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user