Skip to content

Commit

Permalink
Add autocomplete to text selector (#81060)
Browse files Browse the repository at this point in the history
  • Loading branch information
steverep authored Nov 15, 2022
1 parent 435fc23 commit c940ad9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/helpers/selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,7 @@ class TextSelectorConfig(TypedDict, total=False):
multiline: bool
suffix: str
type: TextSelectorType
autocomplete: str


class TextSelectorType(StrEnum):
Expand Down Expand Up @@ -904,6 +905,7 @@ class TextSelector(Selector):
vol.Optional("type"): vol.All(
vol.Coerce(TextSelectorType), lambda val: val.value
),
vol.Optional("autocomplete"): str,
}
)

Expand Down

0 comments on commit c940ad9

Please sign in to comment.