Fix hardcoded UoM for total power sensor for Tuya zndb devices (#141822)

This commit is contained in:
Franck Nijhof
2025-03-30 17:44:48 +02:00
parent a592feae3d
commit e66416c23d

View File

@@ -832,7 +832,6 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
translation_key="total_power", translation_key="total_power",
device_class=SensorDeviceClass.POWER, device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfPower.KILO_WATT,
subkey="power", subkey="power",
), ),
TuyaSensorEntityDescription( TuyaSensorEntityDescription(