Add measurement state class to ZHA power devices (#53866)

pull/53875/head
Franck Nijhof 2021-08-02 16:33:27 +02:00 committed by GitHub
parent f3d4dac11f
commit d722d13b0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -214,6 +214,7 @@ class ElectricalMeasurement(Sensor):
SENSOR_ATTR = "active_power"
_device_class = DEVICE_CLASS_POWER
_state_class = STATE_CLASS_MEASUREMENT
_unit = POWER_WATT
@property