Add sensor native unit of measure in NUT (#141338)

This commit is contained in:
tdfountain 2025-03-24 22:11:13 -07:00 committed by GitHub
parent f864f71028
commit 598a75379b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -523,6 +523,7 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
"input.power": SensorEntityDescription(
key="input.power",
translation_key="input_power",
native_unit_of_measurement=UnitOfApparentPower.VOLT_AMPERE,
device_class=SensorDeviceClass.APPARENT_POWER,
state_class=SensorStateClass.MEASUREMENT,
entity_category=EntityCategory.DIAGNOSTIC,