deCONZ use forward entry setup#13990
Conversation
|
@balloob just a quick check I'm not doing something different from how you want it. Also, are tests expected for the platforms and deconz setup? |
There was a problem hiding this comment.
Writing auth credentials to the log
There was a problem hiding this comment.
There are a couple of places in the lib that also happens, but only when enabling debug. Another issue is that all communication is http only.
There was a problem hiding this comment.
Any reason this is a standalone method and not just part of async_setup_entry ?
There was a problem hiding this comment.
Only legacy reasons, which are now irrelevant. Thanks for pointing that out!
|
Yes this seems right. And yes, everything that has to do with config entries or entity registry requires full test coverage. |
|
For another PR we should check in entity platform helper if the platform has |
There was a problem hiding this comment.
redefinition of unused 'test_setup_entry_already_registered_bridge' from line 71
|
Make sure to remove the WIP from the title when it's ready for review. |
|
@balloob it's the tests that are left. Trying to figure stuff out. Would help if you could hint me in the right direction. I'm trying to figure out how to patch/mock the pydeconz class and methods since they only need to return true or false with async setup entry |
There was a problem hiding this comment.
line too long (86 > 79 characters)
There was a problem hiding this comment.
line too long (83 > 79 characters)
|
@balloob I feel like this is ready for a review now |
Create initial negative tests for setup entry
85a8278 to
e1069ae
Compare
|
Awesome! |
|
Great @balloob ! |
Description:
Checklist:
tox. Your PR cannot be merged unless tests passIf the code does not interact with devices: