mirror of
https://github.com/Andre0512/hon.git
synced 2026-06-15 03:36:27 +00:00
Fix unit of measure warning for washing mashine current electricity usage
This commit is contained in:
parent
0823793977
commit
dea2bc86ce
|
|
@ -16,6 +16,7 @@ from homeassistant.const import (
|
|||
from homeassistant.const import (
|
||||
REVOLUTIONS_PER_MINUTE,
|
||||
UnitOfEnergy,
|
||||
UnitOfPower,
|
||||
UnitOfVolume,
|
||||
UnitOfMass,
|
||||
UnitOfTime,
|
||||
|
|
@ -83,7 +84,7 @@ SENSORS: dict[str, tuple[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.KILO_WATT,
|
||||
icon="mdi:lightning-bolt",
|
||||
translation_key="energy_current",
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue