Commit graph

8 commits

Author SHA1 Message Date
Paulus Schoutsen
370799bd22
Revert "Improve light scene support for white mode ()" ()
This reverts commit 6ffe0f6405.
2021-07-30 21:10:32 -07:00
Erik Montnemery
6ffe0f6405
Improve light scene support for white mode () 2021-07-30 12:47:26 -07:00
Erik Montnemery
e560e623e9
Add color_mode white ()
* Add color_mode white

* Include brightness in white parameter

* Reformat

* Improve test coverage
2021-06-06 11:13:18 +02:00
Erik Montnemery
5f2326fb57
Add support for light color modes ()
* Add support for light color modes

* Update tests

* Update comments

* Fix bugs, add tests

* Suppress lint errors

* Don't suppress brightness when state is ambiguous

* Improve reproduce_state + add tests

* Add comment

* Change COLOR_MODE_* constants, rename COLOR_MODE_DIMMER to COLOR_MODE_BRIGHTNESS

* Fix tests

* Tweaks
2021-03-16 12:51:39 +01:00
Franck Nijhof
bc5a2da7b7
Add transition support to scenes, cleanup blocking parameter () 2020-04-20 18:07:50 -07:00
Martin Hjelmare
1d2713b0ea
Clarify light reproduce state deprecation warning () 2020-04-02 09:52:46 -07:00
Santobert
7b86f0f926 Add deprecated attributes to light.reproduce_state ()
* Add deprecated attributes to light.reproduce_state

* Add blank line

* fix minor bug

* Typo
2019-11-05 06:43:50 -08:00
Santobert
46ac98379e Add improved scene support to the light integration ()
* light reproduce state

* Add types

* Fix linting error

* Add tests

* Improve test

* Fix failing tests

* Another try

* avoid repetition

* simplified if

* Remove attributes that are no attributes
2019-10-05 12:43:12 -07:00