mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 01:58:20 +00:00
Fix state of sense net_production sensor (#59391)
This commit is contained in:
parent
5336845452
commit
aacc0edde7
@ -1,7 +1,7 @@
|
||||
"""Support for monitoring a Sense energy sensor."""
|
||||
from homeassistant.components.sensor import (
|
||||
STATE_CLASS_MEASUREMENT,
|
||||
STATE_CLASS_TOTAL_INCREASING,
|
||||
STATE_CLASS_TOTAL,
|
||||
SensorEntity,
|
||||
)
|
||||
from homeassistant.const import (
|
||||
@ -251,7 +251,7 @@ class SenseTrendsSensor(CoordinatorEntity, SensorEntity):
|
||||
"""Implementation of a Sense energy sensor."""
|
||||
|
||||
_attr_device_class = DEVICE_CLASS_ENERGY
|
||||
_attr_state_class = STATE_CLASS_TOTAL_INCREASING
|
||||
_attr_state_class = STATE_CLASS_TOTAL
|
||||
_attr_native_unit_of_measurement = ENERGY_KILO_WATT_HOUR
|
||||
_attr_extra_state_attributes = {ATTR_ATTRIBUTION: ATTRIBUTION}
|
||||
_attr_icon = ICON
|
||||
|
Loading…
x
Reference in New Issue
Block a user