From 5b5208f4487b72e30537cdf232cfec955dcf0a3a Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 31 Dec 2024 14:44:53 +1100 Subject: [PATCH] Fixing types for climate --- CHANGELOG.md | 4 +++- package-lock.json | 6 +++--- .../src/Shared/Entity/Climate/ClimateControls/data.ts | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a3f3ff..ded2141 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,9 @@ - WeatherCard - When using multiple forecast rows, the layout of the card was not aligned making it hard to read, this was fixed thanks to @kdkavanagh, additional examples added to storybook to demonstrate this. - CameraCard - WebRTC has recently received a lot of love with the lovelace cards, this functionality has been migrated over to the CameraCard thanks to @kdkavanagh ## @hakit/core -- No functional changes, just updated to locales +- Locales - Updated to match latest release +- Updated ClimateEntity types to include swing properties & defrosting HVAC mode +- Added PersonEntity type exported from core # 4.0.3 diff --git a/package-lock.json b/package-lock.json index 360b6cc..ddef450 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27223,7 +27223,7 @@ }, "packages/components": { "name": "@hakit/components", - "version": "4.0.3", + "version": "4.0.4", "license": "SEE LICENSE IN LICENSE.md", "devDependencies": { "@types/leaflet": "^1.9.12", @@ -27241,7 +27241,7 @@ "@emotion/react": ">=10.x", "@emotion/styled": ">=10.x", "@fullcalendar/react": ">=6.x.x", - "@hakit/core": "^4.0.3", + "@hakit/core": "^4.0.4", "@use-gesture/react": ">=10.x", "autolinker": ">=4.x", "framer-motion": ">=10.x", @@ -27263,7 +27263,7 @@ }, "packages/core": { "name": "@hakit/core", - "version": "4.0.3", + "version": "4.0.4", "license": "SEE LICENSE IN LICENSE.md", "bin": { "hakit-sync-types": "dist/sync/cli/cli.js" diff --git a/packages/components/src/Shared/Entity/Climate/ClimateControls/data.ts b/packages/components/src/Shared/Entity/Climate/ClimateControls/data.ts index 1487a61..f8abcd1 100644 --- a/packages/components/src/Shared/Entity/Climate/ClimateControls/data.ts +++ b/packages/components/src/Shared/Entity/Climate/ClimateControls/data.ts @@ -36,7 +36,7 @@ export const CLIMATE_HVAC_ACTION_TO_MODE: Record = { heating: "heat", idle: "off", off: "off", - defrosting: 'defrost' + defrosting: 'cool' }; export const CLIMATE_HVAC_ACTION_ICONS: Record = {