-
Notifications
You must be signed in to change notification settings - Fork 568
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
Support adding and removing entities to devices #191
Conversation
7e2f55a
to
6036be8
Compare
6036be8
to
8956f94
Compare
Hi @postlund, just tested it, here are my remarks:
|
Thanks for testing @ultratoto14! Let's see if I can answer... Hmm, that's strange. Is it always like that or only when you add a new entity to a device that you added during the same "session"? Because I know that the browser sometimes cache values and fill those in for some reason. I at least don't have any code for auto-filling values (that's part of #125, which isn't merged yet). That's a limitation of the entry flow framework. There's only two ways out: creating a new config entry or aborting (yielding the "canceled" message). Since we already have a config entry, that leaves out the first one (which also would request the user to assign the device to a room again), leaving only the abort method. Fact is that this is the de-facto way of doing things like this, e.g. when reconfiguring credentials for a device. So you will see it in the built in components as well. The exception I don't know the reason for, will have to look into that. Right, good catch. I will make sure to filter out devices set up via YAML. |
Hi @postlund, I remember that the filtered already used DP is only for the ID, it was on a PR already merged. So it's normal then, I set up a light with multiple DP used and expect that these will not be present in the dropdown list, but this applies only to ID, my bad. |
1dca33a
to
b9113f1
Compare
b9113f1
to
d869296
Compare
@postlund should I retest this one ? |
@ultratoto14 Yes please, forgot to ping you about it. |
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.
Code looks good 👍
Tests are Ok:
- Adding new device 👍
- Adding entity to device 👍
- Removing entity from device 👍
- YAML devices not listed 👍
- Already configured and not yet configured are there in list 👍
Great! 👍 Let's merge before I charge my mind. |
New entities can be added via + button under Integrations (like when adding a new device) and entities can be removed from Options.
97009c4
to
86d1887
Compare
🎉 |
This is not what I should be working on, but I had most of the code sitting on a branch so I decided to finish it.
New entities can be added via + button under Integrations (like when adding a new device, but select an existing device instead) and entities can be removed from Options.