mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Add sensor native unit of measure in NUT (#141338)
This commit is contained in:
parent
f864f71028
commit
598a75379b
@ -523,6 +523,7 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
|
|||||||
"input.power": SensorEntityDescription(
|
"input.power": SensorEntityDescription(
|
||||||
key="input.power",
|
key="input.power",
|
||||||
translation_key="input_power",
|
translation_key="input_power",
|
||||||
|
native_unit_of_measurement=UnitOfApparentPower.VOLT_AMPERE,
|
||||||
device_class=SensorDeviceClass.APPARENT_POWER,
|
device_class=SensorDeviceClass.APPARENT_POWER,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user