Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5e committed Feb 24, 2023
1 parent 0747cbe commit 1db6c82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/accessory/characteristic/EnergyUsage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ function createVoltsCharacteristic(api: API) {
}

function createKilowattHourCharacteristic(api: API) {
return class Watts extends api.hap.Characteristic {
return class KilowattHour extends api.hap.Characteristic {
static readonly UUID = 'E863F10C-079E-48FF-8F27-9C2605A29F52';

constructor() {
super('Total Consumption', Watts.UUID, {
super('Total Consumption', KilowattHour.UUID, {
format: api.hap.Formats.FLOAT,
perms: [api.hap.Perms.NOTIFY, api.hap.Perms.PAIRED_READ],
unit: 'kWh',
Expand Down

0 comments on commit 1db6c82

Please sign in to comment.