Skip to content

Commit

Permalink
Extend services type (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob authored Mar 13, 2024
1 parent 4be8418 commit a03e7cb
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 a03e7cb

Please sign in to comment.