Skip to content

Commit

Permalink
Improve Yeelight support (expose more properties, add support for sec…
Browse files Browse the repository at this point in the history
…ondary lights) (#1035)

* Add all yeelight properties from documentation

* Add new property to DummyLight init

* Cast delay_off to int

* Replase data with a dictionary

* add YeelightSubLight class

* Using __repr__ to fix cl output, fix tests.

* return params for base lamp to YeelightStatus

* Improve comand line output
 - YeelightSubLight was inherited from the DeviceStatus
 - added cli_format_lights property

* use cli_format function for output

* Show color mode name

* Added more devices and properties to test

* Add common tests

* SIM119 was added to flake8 Ignore
  • Loading branch information
Kirmas authored May 16, 2021
1 parent 34f3370 commit 0392d35
Show file tree
Hide file tree
Showing 3 changed files with 541 additions and 113 deletions.
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ max-line-length = 88
select = C,E,F,W,B,SIM,T
# the line lengths are enforced by black and docformatter
# therefore we ignore E501 and B950 here
ignore = E501,B950,W503,E203
# SIM119 - are irrelevant as we still support python 3.6 series
ignore = E501,B950,W503,E203,SIM119
Loading

0 comments on commit 0392d35

Please sign in to comment.