From ae6dad31a5cb5e9c5daccd6a68b39dbbf7420e82 Mon Sep 17 00:00:00 2001 From: pinpong Date: Sat, 16 Sep 2023 17:05:47 +0200 Subject: [PATCH] fixed typos --- src/systems/energyManagers/types.ts | 8 ++++---- src/systems/vents/index.ts | 2 +- src/systems/wallBoxes/types.ts | 2 +- test/utils/colorUtils.test.ts | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/systems/energyManagers/types.ts b/src/systems/energyManagers/types.ts index 461b500..09e1531 100644 --- a/src/systems/energyManagers/types.ts +++ b/src/systems/energyManagers/types.ts @@ -44,13 +44,13 @@ export type EnergyManager = BaseSystemType & { batterySoCLevel: number | null; /** The ems enabled state */ emsEnabledState: EMSEnabledState | null; - /** The maximum power consumption from net as kilo watt */ + /** The maximum power consumption from net as kilowatt */ maximumPowerConsumptionFromNet: number | null; - /** The maximum power exported to net as kilo watt */ + /** The maximum power exported to net as kilowatt */ maximumPowerExportToNet: number | null; - /** The maximum solar panels power as kilo watt */ + /** The maximum solar panels power as kilowatt */ maximumPowerSolarPanels: number | null; - /** The maximum battery power as kilo watt */ + /** The maximum battery power as kilowatt */ maximumPowerBattery: number | null; }; diff --git a/src/systems/vents/index.ts b/src/systems/vents/index.ts index a0cca62..3edd747 100644 --- a/src/systems/vents/index.ts +++ b/src/systems/vents/index.ts @@ -126,7 +126,7 @@ export class Vents extends BaseSystem { } /** - * Sets the vent lelve. + * Sets the vent level. * @param itemId - The item id. * @param ventLevel - The new vent level. */ diff --git a/src/systems/wallBoxes/types.ts b/src/systems/wallBoxes/types.ts index e36af38..ffc0aeb 100644 --- a/src/systems/wallBoxes/types.ts +++ b/src/systems/wallBoxes/types.ts @@ -20,7 +20,7 @@ export type WallBox = BaseSystemType & { chargeUserName: string | null; /** The charging duration time as hh:mm:ss */ chargeDurationTime: number | null; - /** The current charging energy as 0-... Kilowatt hour */ + /** The current charging energy as 0-... kilowatt-hour */ currentChargingEnergy: number | null; /** The charging start time as hh:mm:ss */ chargeStartTime: string | null; diff --git a/test/utils/colorUtils.test.ts b/test/utils/colorUtils.test.ts index 1eddf5a..3880256 100644 --- a/test/utils/colorUtils.test.ts +++ b/test/utils/colorUtils.test.ts @@ -4,7 +4,7 @@ import { rgbToDecimal, rgbToHex, tunableWhiteToHex, -} from '../../src/utils/lights/colorUtils'; +} from '../../src'; const bitterSweet = { rgb: { r: 255, g: 100, b: 100 },