Closed TexTown closed 2 years ago
The sensor sensor.ecu_lifetime_energy no longer has the 'last_reset' in the latest version (v1.0.6)
state_class: total_increasing ecu_id: '216000064264' firmware: ECU_R_1.2.19009 last_update: '2021-12-17 16:48:55' unit_of_measurement: kWh device_class: energy icon: mdi:solar-power friendly_name: ECU Lifetime Energy
Fixed, tanks @HAEdwin , I'll close the incident
Heads Up to fix something before it breaks HA, now visible in the log after startup:
Logger: homeassistant.components.sensor Source: components/sensor/init.py:213 Integration: Sensor (documentation, issues) First occurred: 11:41:28 (1 occurrences) Last logged: 11:41:28
Entity sensor.ecu_lifetime_energy (<class 'custom_components.apsystems_ecur.sensor.APSystemsECUSensor'>) with state_class measurement has set last_reset. Setting last_reset is deprecated and will be unsupported from Home Assistant Core 2021.11. Please update your configuration if state_class is manually configured, otherwise report it to the custom component author.