-
-
Notifications
You must be signed in to change notification settings - Fork 32k
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
Migrate Plugwise to new entity naming style #75109
Conversation
Hey there @CoMPaTech, @bouwew, @brefra, mind taking a look at this pull request as it has been labeled with an integration ( |
Hmm, I'm not too happy to see the |
They are not? Not in the name. They show up in the entity ID in the new naming as the entity IDs are composed by
I think you mean the entity ID, no that is not a breaking change. As entities are already registered in the registry referenced by their unique IDs. Thus for existing installations they won't change. |
Does not change for existing installations, as it has a unique ID.
So, A) that should not be needed; if it is: It's a bug that should be addressed. B) entity IDs are not guaranteed (ever) and are customizable. We can provide the system with an object ID hint for that specific sensor. But that would take this entity out of the standardization effort Home Assistant is currently making (which IMHO will thus lead to unexpected behavior for the future). |
Let's not fix this in Core, let's fix it in the backend, that's where the names are set. Just thinking out loud: the Anna's have an Anna device, the thermostat, and a Smile Anna device, the gateway. Naming them both Anna will be too confusing. So there's no good solution for the Anna's. So only a partial fix is possible, we can avoid the breaking changes for the devices other than the Anna. I will spend some more time on this tonight when I'm at home. |
There is no breaking change?
It uses the names already there present day. It removes them from being part of the entity name, as per new guidelines in the core. https://developers.home-assistant.io/blog/2022/07/10/entity_naming |
I know, not in your book :) How to achieve this: keep the proposed changes as they are, additionally:
Can you agree to this? |
🤷 I'll see what it does.
There isn't? Care to explain (or reword) what your concern about the naming change is?
I'm missing the point, but we will do changes and will make changes if that helps standardize the project or with refactoring. Nothing in this change is breaking and this change is rolled out to all integrations. |
It's not available on PyPi? |
|
Sorry, it's there now. |
Looking good, thanks @bouwew & @CoMPaTech 👍 |
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.
The changes to the test-files can be reverted after adding the last commit.
Proposed change
SSIA
Upgrades
plugwise
to 0.18.7, to aid with the device name changes.Release: https://github.com/plugwise/python-plugwise/releases/tag/v0.18.7
Compare diff: plugwise/python-plugwise@v0.18.6...v0.18.7
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: