Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the backup location selector #3207

Merged
merged 1 commit into from
Oct 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/language-service/src/schemas/integrations/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ export type Selector =
| ActionSelector
| AddonSelector
| AreaSelector
| AssistPipelineSelector
| AttributeSelector
| AssistPipelineSelectors
| BackupLocationSelector
| BooleanSelector
| ColorRGBSelector
| ColorTempSelector
Expand Down Expand Up @@ -81,7 +82,7 @@ export interface AreaSelector {
} | null;
}

export interface AssistPipelineSelectors {
export interface AssistPipelineSelector {
/**
* The assist pipeline selector shows all available assist pipelines (assistants) of which one can be selected.
* https://www.home-assistant.io/docs/blueprint/selectors/#assist-pipeline-selector
Expand All @@ -103,6 +104,14 @@ export interface AttributeSelector {
};
}

export interface BackupLocationSelector {
/**
* The backup location selector shows a list of places a backup could go, depending on what you have configured in storage.
* https://www.home-assistant.io/docs/blueprint/selectors/#backup-location-selector
*/
backup_location: null | Record<string, never>;
}

export interface BooleanSelector {
/**
* The boolean selector shows a toggle that allows the user to turn on or off the selected option.
Expand Down