mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Define fields for assist ask_question action (#147219)
* Define fields for assist ask_question action * Update hassfest --------- Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
parent
8eb906fad9
commit
7322fe40da
@ -86,3 +86,17 @@ ask_question:
|
||||
required: false
|
||||
selector:
|
||||
object:
|
||||
label_field: sentences
|
||||
description_field: id
|
||||
multiple: true
|
||||
translation_key: answers
|
||||
fields:
|
||||
id:
|
||||
required: true
|
||||
selector:
|
||||
text:
|
||||
sentences:
|
||||
required: true
|
||||
selector:
|
||||
text:
|
||||
multiple: true
|
||||
|
@ -90,5 +90,13 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"selector": {
|
||||
"answers": {
|
||||
"fields": {
|
||||
"id": "Answer ID",
|
||||
"sentences": "Sentences"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -306,10 +306,11 @@ def gen_strings_schema(config: Config, integration: Integration) -> vol.Schema:
|
||||
),
|
||||
vol.Optional("selector"): cv.schema_with_slug_keys(
|
||||
{
|
||||
"options": cv.schema_with_slug_keys(
|
||||
vol.Optional("options"): cv.schema_with_slug_keys(
|
||||
translation_value_validator,
|
||||
slug_validator=translation_key_validator,
|
||||
)
|
||||
),
|
||||
vol.Optional("fields"): cv.schema_with_slug_keys(str),
|
||||
},
|
||||
slug_validator=vol.Any("_", cv.slug),
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user