Skip to content

Commit

Permalink
Add support for the label selector (#3213)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Oct 5, 2024
1 parent a02d455 commit 6d42462
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/language-service/src/schemas/integrations/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export type Selector =
| EntitySelector
| FloorSelector
| IconSelector
| LabelSelector
| LocationSelector
| MediaSelector
| NumberSelector
Expand Down Expand Up @@ -434,6 +435,20 @@ export interface IconSelector {
} | null;
}

export interface LabelSelector {
/**
* The label selector shows a label finder that can pick labels.
* https://www.home-assistant.io/docs/blueprint/selectors/#label-selector
*/
label: {
/**
* Allows selecting multiple labels. If set to true, the resulting value of this selector will be a list instead of a single string value
*https://www.home-assistant.io/docs/blueprint/selectors/#label-selector
*/
multiple?: boolean;
} | null;
}

export interface LocationSelector {
/**
* The icon selector shows an icon picker that allows the user to select an icon.
Expand Down

0 comments on commit 6d42462

Please sign in to comment.