mirror of
https://github.com/esphome/esphome.git
synced 2026-09-25 05:54:01 +00:00
[text] Add component tests with pattern coverage (#12345)
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
text:
|
||||
- platform: template
|
||||
name: "Test Text"
|
||||
id: test_text
|
||||
optimistic: true
|
||||
min_length: 0
|
||||
max_length: 100
|
||||
mode: text
|
||||
|
||||
- platform: template
|
||||
name: "Test Text with Pattern"
|
||||
id: test_text_pattern
|
||||
optimistic: true
|
||||
min_length: 1
|
||||
max_length: 50
|
||||
pattern: "[A-Za-z0-9 ]+"
|
||||
mode: text
|
||||
|
||||
- platform: template
|
||||
name: "Test Password"
|
||||
id: test_password
|
||||
optimistic: true
|
||||
min_length: 8
|
||||
max_length: 32
|
||||
mode: password
|
||||
@@ -0,0 +1,2 @@
|
||||
packages:
|
||||
common: !include common.yaml
|
||||
@@ -0,0 +1,2 @@
|
||||
packages:
|
||||
common: !include common.yaml
|
||||
Reference in New Issue
Block a user