mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 02:02:51 +00:00
Cap configured songs by UTF-8 byte length
This commit is contained in:
@@ -110,7 +110,7 @@ automation.register_apply_action(
|
||||
{
|
||||
cv.GenerateID(CONF_ID): cv.use_id(Rtttl),
|
||||
cv.Required(CONF_RTTTL): cv.templatable(
|
||||
cv.All(cv.string, cv.Length(max=MAX_SONG_LENGTH))
|
||||
cv.All(cv.string, cv.ByteLength(max=MAX_SONG_LENGTH))
|
||||
),
|
||||
},
|
||||
key=CONF_RTTTL,
|
||||
|
||||
Reference in New Issue
Block a user