diff --git a/package-lock.json b/package-lock.json index a5ee8ac131..0e2d419e26 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "vscode-home-assistant", - "version": "1.41.2", + "version": "1.41.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "vscode-home-assistant", - "version": "1.41.2", + "version": "1.41.3", "license": "MIT", "dependencies": { - "axios": "^1.7.4", + "axios": "^1.7.7", "bufferutil": "^4.0.8", "home-assistant-js-websocket": "^9.1.0", "utf-8-validate": "^6.0.3", @@ -1115,9 +1115,9 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "node_modules/axios": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", - "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", + "version": "1.7.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", + "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -5585,9 +5585,9 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "axios": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", - "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", + "version": "1.7.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", + "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", "requires": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", diff --git a/package.json b/package.json index 1ae07f6e27..5c128bc023 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.2", + "version": "1.41.3", "preview": false, "engines": { "vscode": "^1.45.1" @@ -445,7 +445,7 @@ "typescript-json-schema": "0.62.0" }, "dependencies": { - "axios": "^1.7.4", + "axios": "^1.7.7", "bufferutil": "^4.0.8", "home-assistant-js-websocket": "^9.1.0", "utf-8-validate": "^6.0.3", diff --git a/src/language-service/package-lock.json b/src/language-service/package-lock.json index e5163d3c2c..1e016e6d47 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.2", + "version": "1.41.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "home-assistant-language-service", - "version": "1.41.2", + "version": "1.41.3", "license": "MIT", "dependencies": { "axios": "^1.2.1", @@ -2139,9 +2139,9 @@ } }, "node_modules/home-assistant-js-websocket": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/home-assistant-js-websocket/-/home-assistant-js-websocket-9.1.0.tgz", - "integrity": "sha512-R2LEMX0h5r6lfDydrobgHaA/HkZv45B8UHC96j9oLPJ1qETSfSmWLy8AF/RthjT+6kWWnZDlt7VU1EfNVT0wuQ==" + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/home-assistant-js-websocket/-/home-assistant-js-websocket-9.4.0.tgz", + "integrity": "sha512-312TuI63IfKf8G+iWvKmPYIdxWMNojwVk03o9OSpQFFDjSCNAYdCUfuPCFs73SuJ1Xpd4D1Eo11CB33MGMqZ+Q==" }, "node_modules/http-proxy-agent": { "version": "2.1.0", @@ -2662,9 +2662,9 @@ } }, "node_modules/prettier": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", - "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" @@ -5870,9 +5870,9 @@ "dev": true }, "home-assistant-js-websocket": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/home-assistant-js-websocket/-/home-assistant-js-websocket-9.1.0.tgz", - "integrity": "sha512-R2LEMX0h5r6lfDydrobgHaA/HkZv45B8UHC96j9oLPJ1qETSfSmWLy8AF/RthjT+6kWWnZDlt7VU1EfNVT0wuQ==" + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/home-assistant-js-websocket/-/home-assistant-js-websocket-9.4.0.tgz", + "integrity": "sha512-312TuI63IfKf8G+iWvKmPYIdxWMNojwVk03o9OSpQFFDjSCNAYdCUfuPCFs73SuJ1Xpd4D1Eo11CB33MGMqZ+Q==" }, "http-proxy-agent": { "version": "2.1.0", @@ -6284,9 +6284,9 @@ "dev": true }, "prettier": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", - "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", "dev": true }, "process-nextick-args": { diff --git a/src/language-service/package.json b/src/language-service/package.json index b9bdc6536a..580c3aadfd 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.2", + "version": "1.41.3", "description": "Home Assistant Language Service", "source": "src/haLanguageService.ts", "main": "dist/haLanguageService.js", diff --git a/src/language-service/src/schemas/integrations/core/automation.ts b/src/language-service/src/schemas/integrations/core/automation.ts index a158f224ec..7909faa5d7 100644 --- a/src/language-service/src/schemas/integrations/core/automation.ts +++ b/src/language-service/src/schemas/integrations/core/automation.ts @@ -142,7 +142,7 @@ export interface AutomationItem extends BaseItem { interface BlueprintItem extends BaseItem { use_blueprint: { path: string; - input: { [key: string]: any }; + input?: { [key: string]: any }; }; /** diff --git a/src/language-service/src/schemas/integrations/core/homeassistant.ts b/src/language-service/src/schemas/integrations/core/homeassistant.ts index 2d6672f7c1..0b89b337a4 100644 --- a/src/language-service/src/schemas/integrations/core/homeassistant.ts +++ b/src/language-service/src/schemas/integrations/core/homeassistant.ts @@ -7,7 +7,6 @@ import { IncludeNamed, Integer, LanguageTags, - TemperatureUnit, TimeZone, UnitSystem, } from "../../types"; @@ -144,7 +143,7 @@ export interface Schema { * "C" for Celsius, "F" for Fahrenheit. * https://www.home-assistant.io/docs/configuration/basic/#temperature_unit */ - temperature_unit?: TemperatureUnit; + temperature_unit?: "C" | "F"; } interface CoreCustomize { diff --git a/src/language-service/src/schemas/integrations/core/script.ts b/src/language-service/src/schemas/integrations/core/script.ts index 911c1e3817..2305bc0b3f 100644 --- a/src/language-service/src/schemas/integrations/core/script.ts +++ b/src/language-service/src/schemas/integrations/core/script.ts @@ -145,7 +145,7 @@ export interface ScriptItem extends BaseItem { interface BlueprintItem extends BaseItem { use_blueprint: { path: string; - input: { [key: string]: any }; + input?: { [key: string]: any }; }; /** diff --git a/src/language-service/src/schemas/types.ts b/src/language-service/src/schemas/types.ts index 28e841647b..b2072f99fb 100644 --- a/src/language-service/src/schemas/types.ts +++ b/src/language-service/src/schemas/types.ts @@ -1530,7 +1530,7 @@ export type TimeZone = | "Zulu"; export type UnitSystem = "metric" | "imperial"; -export type TemperatureUnit = "C" | "F"; +export type TemperatureUnit = "°C" | "°F" | "K"; export type PressureUnit = | "Pa" | "hPa"