Use 'kWh' as unit for 'IEC_ENERGY_COUNTER' (#81427)
The standard unit for the 'IEC_ENERGY_COUNTER' type is 'kWh' instead of 'Wh'pull/81453/head
parent
28989754cd
commit
6bd8cf0072
|
@ -17,6 +17,7 @@ from homeassistant.const import (
|
||||||
DEGREE,
|
DEGREE,
|
||||||
ELECTRIC_CURRENT_MILLIAMPERE,
|
ELECTRIC_CURRENT_MILLIAMPERE,
|
||||||
ELECTRIC_POTENTIAL_VOLT,
|
ELECTRIC_POTENTIAL_VOLT,
|
||||||
|
ENERGY_KILO_WATT_HOUR,
|
||||||
ENERGY_WATT_HOUR,
|
ENERGY_WATT_HOUR,
|
||||||
FREQUENCY_HERTZ,
|
FREQUENCY_HERTZ,
|
||||||
LENGTH_MILLIMETERS,
|
LENGTH_MILLIMETERS,
|
||||||
|
@ -141,7 +142,7 @@ SENSOR_DESCRIPTIONS: dict[str, SensorEntityDescription] = {
|
||||||
),
|
),
|
||||||
"IEC_ENERGY_COUNTER": SensorEntityDescription(
|
"IEC_ENERGY_COUNTER": SensorEntityDescription(
|
||||||
key="IEC_ENERGY_COUNTER",
|
key="IEC_ENERGY_COUNTER",
|
||||||
native_unit_of_measurement=ENERGY_WATT_HOUR,
|
native_unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue