Update esphome/core/config.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
J. Nick Koston
2026-03-06 07:25:22 -10:00
committed by GitHub
co-authored by Copilot
parent 74fd263f11
commit da40288b2d
+2 -1
View File
@@ -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