mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Add measurement state class to ZHA power devices (#53866)
This commit is contained in:
parent
f3d4dac11f
commit
d722d13b0e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user