mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +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(): cv.declare_id(MicroWakeWord),
|
||||||
cv.GenerateID(CONF_MICROPHONE): cv.use_id(microphone.Microphone),
|
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(
|
cv.Optional(CONF_ON_WAKE_WORD_DETECTED): automation.validate_automation(
|
||||||
single=True
|
single=True
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue