-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Fix Nut resources option migration #59020
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
Conversation
Hey there @bdraco, mind taking a look at this pull request as it has been labeled with an integration ( |
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.
For the future, I suggest we remove the resources selection from the config flow completely and just set a default selection from the beginning.
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Totally agree, i was just waiting for closure of PR #58798 to have a better idea of what consider main resources to enable by default. |
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.
Thanks!
Is this fixing something we released yesterday in 2021.11.0? |
Without this PR moving from 2021.10.x to 2021.11.x may cause having all Nut entities enabled. Unfortunately will not fix for who already migrate to 2021.11.0. |
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Proposed change
There is a little issue in migration of entity status enabled based on entry configuration
resources
. Whenresources
is also configured as entry options, this value should be used to replace the current value in the entry data.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: