Add autocomplete to text selector (#81060)
This commit is contained in:
parent
435fc23737
commit
c940ad9920
1 changed files with 2 additions and 0 deletions
|
@ -869,6 +869,7 @@ class TextSelectorConfig(TypedDict, total=False):
|
||||||
multiline: bool
|
multiline: bool
|
||||||
suffix: str
|
suffix: str
|
||||||
type: TextSelectorType
|
type: TextSelectorType
|
||||||
|
autocomplete: str
|
||||||
|
|
||||||
|
|
||||||
class TextSelectorType(StrEnum):
|
class TextSelectorType(StrEnum):
|
||||||
|
@ -904,6 +905,7 @@ class TextSelector(Selector):
|
||||||
vol.Optional("type"): vol.All(
|
vol.Optional("type"): vol.All(
|
||||||
vol.Coerce(TextSelectorType), lambda val: val.value
|
vol.Coerce(TextSelectorType), lambda val: val.value
|
||||||
),
|
),
|
||||||
|
vol.Optional("autocomplete"): str,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue