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 };