New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'last_reset' for 'total' state_class template sensor #100806
Add 'last_reset' for 'total' state_class template sensor #100806
Conversation
Hey there @PhracturedBlue, @tetienne, @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
5730a91
to
2c33dc4
Compare
86c9dd3
to
66d1182
Compare
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
Would still like to see this integrated :) |
66d1182
to
00bd85b
Compare
00bd85b
to
2dee043
Compare
@PhracturedBlue, @tetienne, Mind taking a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @RoboMagus 👍
(Close open to force CI to re-run) |
Proposed change
Users are able to configure the
state_class
to betotal
for template sensors, but currently do not have the option to add alast_reset
to this configuration. For e.g. sensors that do have a periodic reset, but may not be monotonically increasing this is a missing feature when properly trying to track statistics.This PR aims to fix that.
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
.To help with the load of incoming pull requests: