From 54c21962d774fadac2f9bec885a6a7b03363116e Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Tue, 26 Mar 2024 09:53:57 +0100 Subject: [PATCH] Fix service fields filter types (#479) --- lib/types.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/types.ts b/lib/types.ts index 294f4cb0..7d289fe0 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -107,13 +107,10 @@ export type HassService = { required?: boolean; advanced?: boolean; selector?: {}; - filter?: - | { - attribute?: Record; - } - | { - supported_features?: Record; - }; + filter?: { + supported_features?: number[]; + attribute?: Record; + }; // Custom integrations don't use translations and still have name/description name?: string; description: string;