From cfbfdda01125d5d11baf7d1a8b39da6b29eeaafc Mon Sep 17 00:00:00 2001 From: Donnie Date: Tue, 6 Apr 2021 13:04:44 -0700 Subject: [PATCH] Refactor sequence matching to require an item rather than array of words to filter against --- src/dialogs/quick-bar/ha-quick-bar.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dialogs/quick-bar/ha-quick-bar.ts b/src/dialogs/quick-bar/ha-quick-bar.ts index 2e6147f7df..1a3d49d467 100644 --- a/src/dialogs/quick-bar/ha-quick-bar.ts +++ b/src/dialogs/quick-bar/ha-quick-bar.ts @@ -74,6 +74,10 @@ const isCommandItem = (item: QuickBarItem): item is CommandItem => { return (item as CommandItem).categoryKey !== undefined; }; +const isEntityItem = (item: QuickBarItem): item is EntityItem => { + return !isCommandItem(item); +}; + interface QuickBarNavigationItem extends CommandItem { path: string; }