Skip to content

Commit

Permalink
We shouldn't add measurement without last_reset to metered entities (h…
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob authored Aug 5, 2021
1 parent 26cb588 commit fcc3d24
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions homeassistant/components/pvoutput/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from homeassistant.components.sensor import (
DEVICE_CLASS_ENERGY,
PLATFORM_SCHEMA,
STATE_CLASS_MEASUREMENT,
SensorEntity,
)
from homeassistant.const import (
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit fcc3d24

Please sign in to comment.