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

This commit is contained in:
J. Nick Koston
2026-03-16 09:25:21 +13:00
committed by Jesse Hills
parent 49107f2174
commit a064eceb9b
3 changed files with 170 additions and 16 deletions
@@ -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