Skip to content

Commit

Permalink
Merge pull request #2771 from keesschollaart81/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Aug 1, 2023
2 parents 051d0d0 + 138b5f7 commit 424cd2d
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 20 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-home-assistant",
"displayName": "Home Assistant Config Helper",
"description": " Completion for entity-id's in Home Assistant Configurations",
"version": "1.38.0",
"version": "1.39.0",
"preview": false,
"engines": {
"vscode": "^1.45.1"
Expand Down Expand Up @@ -434,7 +434,7 @@
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-prettier": "^8.9.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"prettier": "^3.0.0",
Expand Down
16 changes: 8 additions & 8 deletions src/language-service/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/language-service/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "home-assistant-language-service",
"version": "1.38.0",
"version": "1.39.0",
"description": "Home Assistant Language Service",
"source": "src/haLanguageService.ts",
"main": "dist/haLanguageService.js",
Expand Down
12 changes: 12 additions & 0 deletions src/language-service/src/schemas/integrations/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,12 @@ export interface ServiceAction {
* Additional data for merely for use with the frontend. Has no functional effect.
*/
metadata?: any;

/**
* Add a response_variable to pass a variable of key/value pairs back to an automation or script.
* https://www.home-assistant.io/docs/scripts/service-calls/#use-templates-to-handle-response-data
*/
response_variable?: string;
}

export interface StopAction {
Expand All @@ -449,6 +455,12 @@ export interface StopAction {
* https://www.home-assistant.io/docs/scripts/#stopping-a-script-sequence
*/
error?: boolean;

/**
* Add a response_variable to pass a variable of key/value pairs back to an automation or script
* https://www.home-assistant.io/docs/scripts/#stopping-a-script-sequence
*/
response_variable?: string;
}

export interface WaitForTriggerAction {
Expand Down
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 424cd2d

Please sign in to comment.