mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Refine automation action search with ignoreLocation (#22332)
This commit is contained in:
parent
6cfda78aa1
commit
82b50a1c5d
@ -208,6 +208,7 @@ class DialogAddAutomationElement extends LitElement implements HassDialog {
|
|||||||
const options: IFuseOptions<ListItem> = {
|
const options: IFuseOptions<ListItem> = {
|
||||||
keys: ["key", "name", "description"],
|
keys: ["key", "name", "description"],
|
||||||
isCaseSensitive: false,
|
isCaseSensitive: false,
|
||||||
|
ignoreLocation: true,
|
||||||
minMatchCharLength: Math.min(filter.length, 2),
|
minMatchCharLength: Math.min(filter.length, 2),
|
||||||
threshold: 0.2,
|
threshold: 0.2,
|
||||||
getFn: getStripDiacriticsFn,
|
getFn: getStripDiacriticsFn,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user