mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Add measurement state class to ZHA power devices (#53866)
This commit is contained in:
@@ -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