forked from home-assistant/core
Add measurement state class to ZHA power devices (#53866)
This commit is contained in:
committed by
Paulus Schoutsen
parent
249fb51d2f
commit
df20d69fd2
@@ -214,6 +214,7 @@ class ElectricalMeasurement(Sensor):
|
|||||||
|
|
||||||
SENSOR_ATTR = "active_power"
|
SENSOR_ATTR = "active_power"
|
||||||
_device_class = DEVICE_CLASS_POWER
|
_device_class = DEVICE_CLASS_POWER
|
||||||
|
_state_class = STATE_CLASS_MEASUREMENT
|
||||||
_unit = POWER_WATT
|
_unit = POWER_WATT
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Reference in New Issue
Block a user