From a03e7cb69be52610732eb9ca1f5b371bbca075bf Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 13 Mar 2024 14:39:58 -0400 Subject: [PATCH] Extend services type (#472) --- lib/types.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/types.ts b/lib/types.ts index ee3f79c0..f745f5fa 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -102,10 +102,21 @@ export type HassService = { target?: {} | null; fields: { [field_name: string]: { + example?: string | boolean | number; + default?: unknown; + required?: boolean; + advanced?: boolean; + selector?: {}; + filter?: + | { + attribute?: Record; + } + | { + supported_features?: Record; + }; + // Custom integrations don't use translations and still have name/description name?: string; description: string; - example: string | boolean | number; - selector?: {}; }; }; response?: { optional: boolean };