mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 13:45:15 +00:00
[template] Fix misleading 'Text value too long to save' warning (#14753)
This commit is contained in:
23
tests/integration/fixtures/template_text_save.yaml
Normal file
23
tests/integration/fixtures/template_text_save.yaml
Normal 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
|
||||
Reference in New Issue
Block a user