Skip to content

Commit

Permalink
Merge pull request #1 from hectorzin/hectorzin-patch-1
Browse files Browse the repository at this point in the history
bug: unit of measurament
  • Loading branch information
hectorzin authored Dec 23, 2024
2 parents 70eb6c0 + 67bce16 commit b41ad4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/hon/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
UnitOfEnergy,
UnitOfVolume,
UnitOfMass,
UnitOfPower,
UnitOfTime,
UnitOfTemperature,
)
Expand Down Expand Up @@ -83,7 +84,7 @@ class HonSensorEntityDescription(SensorEntityDescription):
name="Current Electricity Used",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.POWER,
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
native_unit_of_measurement=UnitOfPower.WATT,
icon="mdi:lightning-bolt",
translation_key="energy_current",
),
Expand Down

0 comments on commit b41ad4c

Please sign in to comment.