Add device cleanup to Vodafone Station#116024
Conversation
|
Hey there @paoloantinori, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
Interesting approach! But, are you aware of this? https://developers.home-assistant.io/docs/device_registry_index/#removing-devices I'm thinking about doing something similar for the Plugwise integration and did some research.
If anyone else cares to share their thoughts/ideas/feedback (HA devs!) on this topic, that would be appreciated :) |
|
Hi, I implemented the same approach I used in Device trackers are entities, and if they don't attach to a device, then also the device is created. |
|
entity entries will not be deleted automatically, more over the user can manually delete them as soon as they are not provided by integration anymore. |
|
@mib1185 Thanks for your feedback, and for providing examples :) I'm also thinking of implementing the opposite: when a new device is added, how would I go about adding this device? Sorry @chemelli74 for hijacking your PR! |
mib1185
left a comment
There was a problem hiding this comment.
Hi @chemelli74
sorry delayed response - there are just some small comments from my side
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
9abd0a8 to
5ad3213
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. |
|
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. |
18c8937 to
9aedef0
Compare
|
Merged in dev since this PR is a bit behind to make sure merging it won't cause any lint issues |
Breaking change
Proposed change
Add Device cleanup button to remove state entities no more available in the router itself.
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: