core/homeassistant/components/kostal_plenticore
Gian Klug 8b8f3b55b6
Add state class and last reset in kostal_plenticore (#54084)
* Add state class and implement in kostal_plenticore

* Add support for more entity variants

* Add the state_class to the total values too

* Reformat kostal const.py

* Add `last_reset` to kostal_plenticore entities when `state_class` is set

Also reformat sensor.py

* Fix import

* Remove the constants from the homeassistant constants file

* Use sensor constants for the state_class

* Reformat

* Reformat

* Move last_reset from sensor.py into const.py

* Remove last_reset on PERCENTAGE entities

* Address lint issues

* Update homeassistant/components/kostal_plenticore/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Import datetime

* Apply suggestions from code review

* Fix isort

* Fix more isort

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-07 06:25:35 +02:00
..
translations [ci skip] Translation update 2021-07-19 00:09:50 +00:00
__init__.py
config_flow.py
const.py Add state class and last reset in kostal_plenticore (#54084) 2021-08-07 06:25:35 +02:00
helper.py
manifest.json
sensor.py Add state class and last reset in kostal_plenticore (#54084) 2021-08-07 06:25:35 +02:00
strings.json Block title in strings.json unless internal or allowed (#53304) 2021-07-22 08:37:33 +02:00