Skip to content

Commit

Permalink
Add support for the country selector (#3210)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Oct 5, 2024
1 parent 9e997aa commit 3a83069
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/language-service/src/schemas/integrations/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export type Selector =
| ConfigEntrySelector
| ConstantSelector
| ConversationAgentSelector
| CountrySelector
| DateSelector
| DateTimeSelector
| DeviceSelector
Expand Down Expand Up @@ -206,6 +207,26 @@ export interface ConversationAgentSelector {
} | null;
}

export interface CountrySelector {
/**
* The country selector allows a user to pick a country from a list of countries.
* https://www.home-assistant.io/docs/blueprint/selectors/#country-selector
*/
country: {
/**
* A list of countries to pick from, this should be ISO 3166 country codes.
* https://www.home-assistant.io/docs/blueprint/selectors/#country-selector
*/
countries?: string[];

/**
* Should the options be sorted by name, if set to true, the order of the provided countries is kept.
* https://www.home-assistant.io/docs/blueprint/selectors/#country-selector
*/
no_sort?: boolean;
} | 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 3a83069

Please sign in to comment.