Skip to content

Commit

Permalink
Add support for the backup location selector (#3207)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Oct 5, 2024
1 parent d75d02d commit 7b7fd8e
Showing 1 changed file with 11 additions and 2 deletions.
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

0 comments on commit 7b7fd8e

Please sign in to comment.