Refine automation action search with ignoreLocation (#22332)

This commit is contained in:
karwosts 2024-10-11 12:34:43 -07:00 committed by GitHub
parent 6cfda78aa1
commit 82b50a1c5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -208,6 +208,7 @@ class DialogAddAutomationElement extends LitElement implements HassDialog {
const options: IFuseOptions<ListItem> = {
keys: ["key", "name", "description"],
isCaseSensitive: false,
ignoreLocation: true,
minMatchCharLength: Math.min(filter.length, 2),
threshold: 0.2,
getFn: getStripDiacriticsFn,