From fcc3d24904fa8ea7a8ee5c105a3b7f0158026103 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 5 Aug 2021 13:10:42 -0700 Subject: [PATCH] We shouldn't add measurement without last_reset to metered entities (#54087) --- homeassistant/components/pvoutput/sensor.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/homeassistant/components/pvoutput/sensor.py b/homeassistant/components/pvoutput/sensor.py index 999ac14e949..5744dbfff9a 100644 --- a/homeassistant/components/pvoutput/sensor.py +++ b/homeassistant/components/pvoutput/sensor.py @@ -9,7 +9,6 @@ from homeassistant.components.rest.data import RestData from homeassistant.components.sensor import ( DEVICE_CLASS_ENERGY, PLATFORM_SCHEMA, - STATE_CLASS_MEASUREMENT, SensorEntity, ) from homeassistant.const import ( @@ -72,7 +71,6 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info= class PvoutputSensor(SensorEntity): """Representation of a PVOutput sensor.""" - _attr_state_class = STATE_CLASS_MEASUREMENT _attr_device_class = DEVICE_CLASS_ENERGY _attr_unit_of_measurement = ENERGY_WATT_HOUR