Fix unit of measure warning for washing mashine current electricity usage

This commit is contained in:
Michał Małolepszy 2025-06-26 01:04:02 +02:00
parent 0823793977
commit dea2bc86ce

View file

@ -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",
),