Add MEASUREMENT state class to Sense Voltage sensors (#93044)

Add MEASUREMENT to Voltage sensors
This commit is contained in:
Pieter Viljoen 2023-05-15 00:11:12 -07:00 committed by GitHub
parent ef887e529f
commit 77f99e4162
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,6 +210,7 @@ class SenseVoltageSensor(SensorEntity):
"""Implementation of a Sense energy voltage sensor."""
_attr_device_class = SensorDeviceClass.VOLTAGE
_attr_state_class = SensorStateClass.MEASUREMENT
_attr_native_unit_of_measurement = UnitOfElectricPotential.VOLT
_attr_attribution = ATTRIBUTION
_attr_should_poll = False