psvanstrom / esphome-p1reader

ESPHome custom component for reading P1 data from electricity meters.
MIT License
252 stars 106 forks source link

Use the new `total_increasing` state class #16

Closed psvanstrom closed 2 years ago

psvanstrom commented 2 years ago

Remove the now deprecated last_reset attribute and change the state_class to the newly introduced total_increasing value as defined here: https://developers.home-assistant.io/docs/core/entity/sensor/#available-state-classes