From 726f93745bf6cfe85d92613b9b53373c9540cef3 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 28 Sep 2024 16:03:00 +0200 Subject: [PATCH 1/2] Fix Plural automation schema (#3152) --- .../src/schemas/integrations/core/automation.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/language-service/src/schemas/integrations/core/automation.ts b/src/language-service/src/schemas/integrations/core/automation.ts index 5fe57bebd0..a158f224ec 100644 --- a/src/language-service/src/schemas/integrations/core/automation.ts +++ b/src/language-service/src/schemas/integrations/core/automation.ts @@ -112,13 +112,13 @@ export interface AutomationItem extends BaseItem { * Triggers describe events that should trigger the automation rule. * https://www.home-assistant.io/docs/automation/basics/ */ - trigger: Trigger | Trigger[] | IncludeList; + trigger?: Trigger | Trigger[] | IncludeList; /** * Triggers describe events that should trigger the automation rule. * https://www.home-assistant.io/docs/automation/basics/ */ - triggers: Trigger | Trigger[] | IncludeList; + triggers?: Trigger | Trigger[] | IncludeList; /** * Available in trigger templates with the difference that only limited templates can be used to pass a value to the trigger variable. @@ -130,13 +130,13 @@ export interface AutomationItem extends BaseItem { * The action(s) which will be performed when a rule is triggered and all conditions are met. For example, it can turn a light on, set the temperature on your thermostat or activate a scene. * https://www.home-assistant.io/docs/automation/basics/ */ - action: Action | Action[] | IncludeList; + action?: Action | Action[] | IncludeList; /** * The action(s) which will be performed when a rule is triggered and all conditions are met. For example, it can turn a light on, set the temperature on your thermostat or activate a scene. * https://www.home-assistant.io/docs/automation/basics/ */ - actions: Action | Action[] | IncludeList; + actions?: Action | Action[] | IncludeList; } interface BlueprintItem extends BaseItem { From 2b3bd6bed4d0e9a215c628439115fb3c1b95d62f Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 28 Sep 2024 16:05:41 +0200 Subject: [PATCH 2/2] Bump version to v1.41.1 --- 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 857ed6925f..cc9d871099 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vscode-home-assistant", - "version": "1.41.0", + "version": "1.41.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "vscode-home-assistant", - "version": "1.41.0", + "version": "1.41.1", "license": "MIT", "dependencies": { "axios": "^1.6.8", diff --git a/package.json b/package.json index acbcd2c512..aff25f1ab4 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.41.0", + "version": "1.41.1", "preview": false, "engines": { "vscode": "^1.45.1" diff --git a/src/language-service/package-lock.json b/src/language-service/package-lock.json index 95c7b6795a..2bdcb5825b 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.41.0", + "version": "1.41.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "home-assistant-language-service", - "version": "1.41.0", + "version": "1.41.1", "license": "MIT", "dependencies": { "axios": "^1.2.1", diff --git a/src/language-service/package.json b/src/language-service/package.json index 8490dbdb47..96db8c02b4 100644 --- a/src/language-service/package.json +++ b/src/language-service/package.json @@ -1,6 +1,6 @@ { "name": "home-assistant-language-service", - "version": "1.41.0", + "version": "1.41.1", "description": "Home Assistant Language Service", "source": "src/haLanguageService.ts", "main": "dist/haLanguageService.js",