-
-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
Improve group state behavior #116116
Improve group state behavior #116116
Conversation
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
@jbouwh The PR title is "Fix group off_on_mapping issue", but the description says:
If the issue was fixed by PR #115866, why does it need fixing again? |
Title was adjusted. The fix was intended for the |
For tests, maybe we add a mock platform that has the same issue as #111968 to show the issue is fixed? |
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
d2fd3f3
to
6978e1a
Compare
(vacuum.STATE_RETURNING, vacuum.STATE_CLEANING), | ||
# Only off states, so group state will be off | ||
(vacuum.STATE_PAUSED, vacuum.STATE_IDLE), | ||
(STATE_ON, True), |
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.
As written on discord to @jbouwh I don't like this mixin of a generic group state with platform dependent states but probably that's the way this needs to go?
Superseded by #116318 |
Proposed change
Intention is to improve the group state behavior and allow an entity platform to have specific states in case there are more then one on or off states. This prepares for support of
lock.open
state we want to add. Currently onlylock.unlocked
is a valid open state.The PR include the commits of #115866, but this change was reverted. Details of the final behaviour will be added to the PR's documentation
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
..coveragerc
.To help with the load of incoming pull requests: