Add autocomplete to text selector (#81060)

This commit is contained in:
Steve Repsher 2022-11-15 13:58:59 -05:00 committed by GitHub
parent 435fc23737
commit c940ad9920
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -869,6 +869,7 @@ class TextSelectorConfig(TypedDict, total=False):
multiline: bool
suffix: str
type: TextSelectorType
autocomplete: str
class TextSelectorType(StrEnum):
@ -904,6 +905,7 @@ class TextSelector(Selector):
vol.Optional("type"): vol.All(
vol.Coerce(TextSelectorType), lambda val: val.value
),
vol.Optional("autocomplete"): str,
}
)