Skip to content

Commit

Permalink
Extend services type
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Feb 26, 2024
1 parent dac084e commit 9996606
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>;
}
| {
supported_features?: Record<string, string>;
};
// Custom integrations don't use translations and still have name/description
name?: string;
description: string;
example: string | boolean | number;
selector?: {};
};
};
response?: { optional: boolean };
Expand Down

0 comments on commit 9996606

Please sign in to comment.