[template] Fix misleading 'Text value too long to save' warning (#14753)

This commit is contained in:
J. Nick Koston
2026-03-13 07:37:44 -10:00
committed by GitHub
parent 8936be628f
commit bd844fcd0a
3 changed files with 170 additions and 16 deletions

View File

@@ -0,0 +1,23 @@
esphome:
name: host-template-text-save-test
host:
api:
batch_delay: 0ms
logger:
preferences:
flash_write_interval: 0s
text:
- platform: template
name: "Test Text Restore"
id: test_text_restore
optimistic: true
min_length: 0
max_length: 10
mode: text
initial_value: "hello"
restore_value: true