Skip to content

Commit

Permalink
Fix unit of current elecricity #158
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed Mar 30, 2024
1 parent 0e166f3 commit 6d2a6ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/hon/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
UnitOfEnergy,
UnitOfVolume,
UnitOfMass,
UnitOfPower,
UnitOfTime,
UnitOfTemperature,
)
Expand Down Expand Up @@ -84,7 +83,7 @@ class HonSensorEntityDescription(SensorEntityDescription):
name="Current Electricity Used",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.POWER,
native_unit_of_measurement=UnitOfPower.KILO_WATT,
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
icon="mdi:lightning-bolt",
translation_key="energy_current",
),
Expand Down

0 comments on commit 6d2a6ce

Please sign in to comment.