-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Add visits today sensor for pets #147459
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
base: dev
Are you sure you want to change the base?
Add visits today sensor for pets #147459
Conversation
Hey there @tkdrob, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
key="visits_today", | ||
translation_key="visits_today", | ||
entity_category=EntityCategory.DIAGNOSTIC, | ||
state_class=SensorStateClass.TOTAL, |
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.
Isn't this total increasing?
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.
I went back and forth on this and ultimately decided on total with last reset due to the scenario of a cat using the litterbox at midnight (or just after, but before the coordinator updates). If the cat had only used the litterbox once the day before, then total increasing would not see an additional visit.
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
RobotSensorEntityDescription[Pet]( | ||
key="visits_today", | ||
translation_key="visits_today", | ||
entity_category=EntityCategory.DIAGNOSTIC, |
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.
why DIAGNOSTIC? Since it is not info about the litter robot, I am not sure if it should be in the diagnostic category.
Breaking change
Proposed change
SSIA
Type of change
Additional information
Checklist
ruff format 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
.To help with the load of incoming pull requests: