mirror of
https://github.com/esphome/esphome.git
synced 2026-09-03 19:46:02 +00:00
Update esphome/core/config.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
parent
74fd263f11
commit
da40288b2d
@@ -224,7 +224,8 @@ else:
|
||||
FRIENDLY_NAME_MAX_LEN = 120
|
||||
|
||||
# Max device class string length (47 chars + null = 48-byte PROGMEM buffer)
|
||||
# Keep in sync with MAX_DEVICE_CLASS_LENGTH in esphome/core/entity_base.h
|
||||
# Keep in sync with MAX_DEVICE_CLASS_LENGTH in esphome/core/entity_base.h:
|
||||
# DEVICE_CLASS_MAX_LENGTH == MAX_DEVICE_CLASS_LENGTH - 1 (C++ includes the null)
|
||||
DEVICE_CLASS_MAX_LENGTH = 47
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user