From 77f99e416251015d6194f6924a1ba40e63a06a53 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Mon, 15 May 2023 00:11:12 -0700 Subject: [PATCH] Add MEASUREMENT state class to Sense Voltage sensors (#93044) Add MEASUREMENT to Voltage sensors --- homeassistant/components/sense/sensor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/sense/sensor.py b/homeassistant/components/sense/sensor.py index 9a3bb8bc3f0..d6679d80f69 100644 --- a/homeassistant/components/sense/sensor.py +++ b/homeassistant/components/sense/sensor.py @@ -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