mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
[micro_wake_word] Allow simpler model config (#7094)
This commit is contained in:
parent
41baf70660
commit
0bbefb5b2a
1 changed files with 3 additions and 1 deletions
|
@ -357,7 +357,9 @@ CONFIG_SCHEMA = cv.All(
|
|||
{
|
||||
cv.GenerateID(): cv.declare_id(MicroWakeWord),
|
||||
cv.GenerateID(CONF_MICROPHONE): cv.use_id(microphone.Microphone),
|
||||
cv.Required(CONF_MODELS): cv.ensure_list(MODEL_SCHEMA),
|
||||
cv.Required(CONF_MODELS): cv.ensure_list(
|
||||
cv.maybe_simple_value(MODEL_SCHEMA, key=CONF_MODEL)
|
||||
),
|
||||
cv.Optional(CONF_ON_WAKE_WORD_DETECTED): automation.validate_automation(
|
||||
single=True
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue