Skip to content

Commit

Permalink
Fix service fields filter types (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Mar 26, 2024
1 parent d4fc0d2 commit 54c2196
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,10 @@ export type HassService = {
required?: boolean;
advanced?: boolean;
selector?: {};
filter?:
| {
attribute?: Record<string, string>;
}
| {
supported_features?: Record<string, string>;
};
filter?: {
supported_features?: number[];
attribute?: Record<string, any[]>;
};
// Custom integrations don't use translations and still have name/description
name?: string;
description: string;
Expand Down

0 comments on commit 54c2196

Please sign in to comment.