Skip to content

Commit

Permalink
Add config entry selector (#2770)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Aug 1, 2023
1 parent 3dfddd8 commit 4578b12
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 @@ -19,6 +19,7 @@ export type Selector =
| ColorRGBSelector
| ColorTempSelector
| ConditionSelector
| ConfigEntrySelector
| DateSelector
| DateTimeSelector
| DeviceSelector
Expand Down Expand Up @@ -136,6 +137,20 @@ export interface ConditionSelector {
condition: null | Record<string, never>;
}

export interface ConfigEntrySelector {
/**
* The config entry selector allows the user to select an integration configuration entry. The selector returns the entry ID of the selected integration configuration entry.
* https://www.home-assistant.io/docs/blueprint/selectors/#config-entry-selector
*/
config_entry: {
/**
* Can be set to an integration domain. Limits the list of config entries provided by the set integration domain.
* https://www.home-assistant.io/docs/blueprint/selectors/#config-entry-selector
*/
integration?: Domain;
} | null;
}

export interface DateSelector {
/**
* The date selector shows a date input that allows the user to specify a date.
Expand Down

0 comments on commit 4578b12

Please sign in to comment.