From 8774f0c8216d556724278a1f8fafcb65bae2e532 Mon Sep 17 00:00:00 2001 From: Jim Date: Fri, 16 Feb 2024 19:58:42 +0000 Subject: [PATCH] Prettier formatting --- src/components/ha-service-picker.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/components/ha-service-picker.ts b/src/components/ha-service-picker.ts index 6e7a5e27ad72..3cf04a545047 100644 --- a/src/components/ha-service-picker.ts +++ b/src/components/ha-service-picker.ts @@ -114,14 +114,15 @@ class HaServicePicker extends LitElement { if (!filter) { return processedServices; } - const split_filter = filter.split(' ') - return processedServices.filter( - (service) => { - const lower_service_name = service.name.toLowerCase(); - const lower_service = service.service.toLowerCase(); - return split_filter.every(f => lower_service_name.includes(f)) || split_filter.every(f => lower_service.toLowerCase().includes(f)) - } - ); + const split_filter = filter.split(" "); + return processedServices.filter((service) => { + const lower_service_name = service.name.toLowerCase(); + const lower_service = service.service.toLowerCase(); + return ( + split_filter.every((f) => lower_service_name.includes(f)) || + split_filter.every((f) => lower_service.toLowerCase().includes(f)) + ); + }); } );