Closed brunchboy closed 2 years ago
@brunchboy This PR looks really good! Thanks for creating nice comments for each of the functions and following the existing code style.
I just added one comment about seeing whether we could figure out the range of the battery level reporting. If not, that's ok, I'll just merge leaving it as is.
Also, interesting observation about the library working with OS 2 systems. I would have thought that the REST API we're using here was introduced alongside the OS 3-exclusive mobile apps. I'll add a note to the README.
This works great with the blinds in my home, further confirming that your library is compatible with Director OS 2.0.
I ran your suggested flake8 linter, and it only complained about long lines (no longer than were found in the existing lights.py that I based this on, however, so I thought they were probably fine), and ran Black to fix up the format (there was one missing and one extra blank line).
This is a re-created version of PR #10 with email properly configured so the commit is signed and verified. If you accept it, it fixes issue #9.