TheMicDiet / chihiros-led-control

Control your Chihiros LEDs with Home Assistant or CLI
MIT License
29 stars 9 forks source link

Big refactoring #12

Closed titilambert closed 7 months ago

titilambert commented 7 months ago

Hello !

This is a giant refactoring to fix #1 and prepare the code for home assistant support. The code is also ready to be pushed to pypi (if needed). I also added entrypoint, so now when user install it, a new chihirosctl command is available (look at the README which is also updated). I started to create one class per device, since they might have some differences (like the tiny terrarium egg has one red and green lights ...) The command line should work with no changes for the users (beside the command name) There is still some module/function with missing doc string, but for the rest the code should be clean.