Skip to content

Commit

Permalink
Merge pull request #175 from renini/fix-today-energy-increasing
Browse files Browse the repository at this point in the history
Change today_energy sensor stateclass back to TOTAL_INCREASING
  • Loading branch information
HAEdwin authored Apr 7, 2023
2 parents ba0279d + b023f9d commit 5c8a6f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/apsystems_ecur/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def async_setup_entry(hass, config, add_entities, discovery_info=None):
unit=UnitOfEnergy.KILO_WATT_HOUR,
devclass=SensorDeviceClass.ENERGY,
icon=SOLAR_ICON,
stateclass=SensorStateClass.TOTAL
stateclass=SensorStateClass.TOTAL_INCREASING
),
APSystemsECUSensor(coordinator, ecu, "lifetime_energy",
label="Lifetime Energy",
Expand Down

0 comments on commit 5c8a6f9

Please sign in to comment.