Remove last_reset attribute and set state class to total_increasing for fronius energy sensors#54830
Conversation
|
Hey there @nielstron, mind taking a look at this pull request as it has been labeled with an integration ( |
|
Thanks, this looks like it makes good use of the new TOTAL_INCREASING class. |
We consider this an edge case at this point that we are most likely not to encounter. We decided to minimize first and extend later when actual occurrences show the need. |
|
@nielstron the
Yeah, that's indeed possible. A solution to that issue is for the integration to force a reset / new cycle by inserting an extra 0-state, if it knows the underlying sensor or API resets periodically by calling |
|
Okay got it, thanks for the feedback! |
Proposed change
Remove
last_resetattribute from and set state class tototal_increasingfor fronius energy sensorsBackground: #54755
Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: