Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for SOMA Smartshades devices #26226
Add support for SOMA Smartshades devices through a SOMA Connect HTTP API. Connect image for the Raspberry Pi 3 can be downloaded for free from https://we.tl/t-mdCdhUeUk9 (password: GetYourSoma).
If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
I think I made all the changes to the actual code that you wanted me to but for the autotests I'm really at a loss. I can't seem to find any description or anything on what is actually needed and how to implement them. I have tried looking at the other components and their tests but it is extremely difficult to figure out what is actually needed in my case. I don't think I can have the test actually attempt a connection to our external hardware as this would always fail with nothing there. But without the hardware the test can't really do anything in my case. I can maybe make a test that tries a connection to the hub and checks if it fails with nothing there but that's all I can think of. Or should I send our devices to somebody who would run these tests?
We just need to test all the steps and paths in the config flow module. The hardware library should be patched to avoid I/O.
Read some blogs about unit testing and read the pytest docs.
Look at the existing tests we have of different integrations config flow.
I'm trying to write test autotests now but I'm having a hard time testing the tests :)