diff --git a/package-lock.json b/package-lock.json index 59b5a482f1..00205aaf95 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vscode-home-assistant", - "version": "1.38.0", + "version": "1.39.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "vscode-home-assistant", - "version": "1.38.0", + "version": "1.39.0", "license": "MIT", "dependencies": { "axios": "^1.4.0", @@ -33,7 +33,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", @@ -1686,9 +1686,9 @@ } }, "node_modules/eslint-config-prettier": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", - "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.9.0.tgz", + "integrity": "sha512-+sbni7NfVXnOpnRadUA8S28AUlsZt9GjgFvABIRL9Hkn8KqNzOp+7Lw4QWtrwn20KzU3wqu1QoOj2m+7rKRqkA==", "dev": true, "bin": { "eslint-config-prettier": "bin/cli.js" @@ -6074,9 +6074,9 @@ } }, "eslint-config-prettier": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", - "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.9.0.tgz", + "integrity": "sha512-+sbni7NfVXnOpnRadUA8S28AUlsZt9GjgFvABIRL9Hkn8KqNzOp+7Lw4QWtrwn20KzU3wqu1QoOj2m+7rKRqkA==", "dev": true, "requires": {} }, diff --git a/package.json b/package.json index c03cbe4f39..f8bd1efc78 100644 --- a/package.json +++ b/package.json @@ -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" @@ -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", diff --git a/src/language-service/package-lock.json b/src/language-service/package-lock.json index 75a999cb8e..4a577ab10b 100644 --- a/src/language-service/package-lock.json +++ b/src/language-service/package-lock.json @@ -1,12 +1,12 @@ { "name": "home-assistant-language-service", - "version": "1.38.0", + "version": "1.39.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "home-assistant-language-service", - "version": "1.38.0", + "version": "1.39.0", "license": "MIT", "dependencies": { "axios": "^1.2.1", @@ -1556,9 +1556,9 @@ } }, "node_modules/eslint-config-prettier": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", - "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.9.0.tgz", + "integrity": "sha512-+sbni7NfVXnOpnRadUA8S28AUlsZt9GjgFvABIRL9Hkn8KqNzOp+7Lw4QWtrwn20KzU3wqu1QoOj2m+7rKRqkA==", "dev": true, "bin": { "eslint-config-prettier": "bin/cli.js" @@ -5492,9 +5492,9 @@ } }, "eslint-config-prettier": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", - "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.9.0.tgz", + "integrity": "sha512-+sbni7NfVXnOpnRadUA8S28AUlsZt9GjgFvABIRL9Hkn8KqNzOp+7Lw4QWtrwn20KzU3wqu1QoOj2m+7rKRqkA==", "dev": true, "requires": {} }, diff --git a/src/language-service/package.json b/src/language-service/package.json index cc97a179c3..0511b4cfe8 100644 --- a/src/language-service/package.json +++ b/src/language-service/package.json @@ -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", diff --git a/src/language-service/src/schemas/integrations/actions.ts b/src/language-service/src/schemas/integrations/actions.ts index d47ecf4dfd..f0b771b6ec 100644 --- a/src/language-service/src/schemas/integrations/actions.ts +++ b/src/language-service/src/schemas/integrations/actions.ts @@ -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 { @@ -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 { diff --git a/src/language-service/src/schemas/integrations/selectors.ts b/src/language-service/src/schemas/integrations/selectors.ts index 3c4bd69230..9b201fdbbf 100644 --- a/src/language-service/src/schemas/integrations/selectors.ts +++ b/src/language-service/src/schemas/integrations/selectors.ts @@ -19,6 +19,7 @@ export type Selector = | ColorRGBSelector | ColorTempSelector | ConditionSelector + | ConfigEntrySelector | DateSelector | DateTimeSelector | DeviceSelector @@ -136,6 +137,20 @@ export interface ConditionSelector { condition: null | Record; } +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.