Update ZHA to use apparent power (#62990)

This commit is contained in:
David F. Mulcahey 2021-12-29 10:35:17 -05:00 committed by GitHub
parent fc1899987a
commit 946544b08f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,6 +306,7 @@ class ElectricalMeasurementApparentPower(
"""Apparent power measurement."""
SENSOR_ATTR = "apparent_power"
_attr_device_class: SensorDeviceClass = SensorDeviceClass.APPARENT_POWER
_unit = POWER_VOLT_AMPERE
_div_mul_prefix = "ac_power"