From 3b51879dd88df4d6ac3ee1a5f4e1eb0fef0a6cd5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 28 Jul 2023 04:42:12 +0000 Subject: [PATCH 1/6] Bump eslint-config-prettier from 8.8.0 to 8.9.0 Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.8.0 to 8.9.0. - [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.8.0...v8.9.0) --- updated-dependencies: - dependency-name: eslint-config-prettier dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 59b5a482f1..253ac60c9e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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..c27f98c856 100644 --- a/package.json +++ b/package.json @@ -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", From 9c173d3204d3cd68c80b69f2381370e18a283b35 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Aug 2023 20:30:42 +0200 Subject: [PATCH 2/6] Bump eslint-config-prettier from 8.8.0 to 8.9.0 in /src/language-service (#2761) --- src/language-service/package-lock.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/language-service/package-lock.json b/src/language-service/package-lock.json index 75a999cb8e..3aa691f159 100644 --- a/src/language-service/package-lock.json +++ b/src/language-service/package-lock.json @@ -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": {} }, From b8f0bb5c8aff2b15a0501723f6e59f546348dee1 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Tue, 1 Aug 2023 14:37:08 -0400 Subject: [PATCH 3/6] Add response_variable to stop action (#2764) Co-authored-by: Franck Nijhof --- src/language-service/src/schemas/integrations/actions.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/language-service/src/schemas/integrations/actions.ts b/src/language-service/src/schemas/integrations/actions.ts index d47ecf4dfd..237af321c9 100644 --- a/src/language-service/src/schemas/integrations/actions.ts +++ b/src/language-service/src/schemas/integrations/actions.ts @@ -449,6 +449,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 { From 3dfddd8d34f89b4b2a5f024ed44c46a7eb368b02 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 1 Aug 2023 20:41:03 +0200 Subject: [PATCH 4/6] Add response variable support to service calls (#2769) --- src/language-service/src/schemas/integrations/actions.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/language-service/src/schemas/integrations/actions.ts b/src/language-service/src/schemas/integrations/actions.ts index 237af321c9..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 { From 4578b12439083199e02d7fd41e3c867d41bd4247 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 1 Aug 2023 20:52:18 +0200 Subject: [PATCH 5/6] Add config entry selector (#2770) --- .../src/schemas/integrations/selectors.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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. From 138b5f76a69bc3a4869fadb40ff51290af4beaec Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 1 Aug 2023 20:54:25 +0200 Subject: [PATCH 6/6] Bump version to v1.39.0 --- package-lock.json | 4 ++-- package.json | 2 +- src/language-service/package-lock.json | 4 ++-- src/language-service/package.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 253ac60c9e..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", diff --git a/package.json b/package.json index c27f98c856..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" diff --git a/src/language-service/package-lock.json b/src/language-service/package-lock.json index 3aa691f159..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", 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",