mirror of
https://github.com/esphome/esphome.git
synced 2024-12-21 21:14:52 +01:00
[micro_wake_word] Allow simpler model config (#7094)
This commit is contained in:
parent
f1d19416be
commit
c910fdf7e5
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