Commit Graph
26 Commits
Author SHA1 Message Date
J. Nick KostonandGitHub e6e8d7eded Convert color temperature to visible color in lights (#55219) 2021-08-25 21:56:36 +02:00
Erik MontnemeryandGitHub ee3e27c82a Add support for white to light groups (#55082) 2021-08-23 18:29:44 +02:00
Franck NijhofandGitHub b4a50f5459 Add unique ID support to light, cover and media player groups (#53225) 2021-07-20 13:56:23 +02:00
Erik MontnemeryandGitHub d2804433d3 Select onoff and brightness color modes last for light groups (#51054) 2021-05-25 08:49:24 -07:00
Joakim SørensenandGitHub 2f10f59717 Block custom integrations with missing or invalid version (#49916) 2021-05-17 15:48:41 +02:00
Franck NijhofandGitHub 7221b1e09d Sort effect lists in light groups (#50620) 2021-05-14 21:43:43 -07:00
Erik MontnemeryandGitHub c2663d61d7 Add color_mode support to group light (#50165)
* Add color_mode support to group light

* Lint

* Update tests
2021-05-06 22:34:51 -07:00
Franck NijhofandGitHub 65cf2fcb6f Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
Franck NijhofandGitHub 64d3cdfb41 Add nested light group test (#41764) 2020-10-13 08:37:16 -05:00
J. Nick KostonandGitHub 3880ac0b0d Ensure group state is recalculated when re-adding on reload (#40497) 2020-09-23 20:55:32 +02:00
J. Nick KostonandGitHub a778690b64 Support reloading the group notify platform (#39511) 2020-09-03 00:12:07 +02:00
Paulus SchoutsenandGitHub 6de02fc1b9 Fix some more usages of asynctest (#39570) 2020-09-02 14:53:07 +02:00
Franck NijhofandGitHub 1c2ebdf307 Upgrade black to 20.8b1 (#39287) 2020-08-27 13:56:20 +02:00
J. Nick KostonandGitHub 810df38f0d Add the ability to reload light/cover groups from yaml (#39250)
* Add the ability to reload light/cover groups from yaml

Update previous usage to reduce code duplication.

* Fix conflict from rebase
2020-08-25 18:13:43 -05:00
J. Nick KostonandGitHub 63ebea1706 Ensure the context is passed to group changes (#39221) 2020-08-26 00:22:10 +02:00
Matthew GarrettandGitHub 34e2a1825b Add support for exposing light effects via Google Assistant (#38575)
* Don't set SUPPORT_EFFECT on DemoLight if there are no effects

This requires an update to the group test - previously the other lights
instantiated by the DemoLight component had nothing in ATTR_EFFECT_LIST, but
still had SUPPORT_EFFECT set. This appears to have resulted in the light
group test code setting an effect on the group and expecting it to apply to
all lights, but given that two of the bulbs didn't actually support any
effects (due to the empty ATTR_EFFECT_LIST) this seems like a broken
assumption and updating the test to verify only the bulb that supports
effects has had one applied seems reasonable.

* Add support for exposing light effects via Google Assistant

The LightEffects trait only supports a fixed (and small) list of lighting
effects, but we can expose them via the Modes trait - this requires saying
"Set (foo) effect to (bar)" which is a little clumsy, but at least makes it
possible.
2020-08-08 14:28:04 -07:00
Franck NijhofandGitHub f42eb0d5ca Fix missing service call context in multiple locations (#37094) 2020-06-25 17:09:52 -07:00
bdc098645b Add entity list to light and cover group attributes (#36477)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-06-05 21:23:52 -07:00
Paulus SchoutsenandGitHub 2af984917e Use asynctest-mock in most places (#35109)
* Use asynctest-mock in most places

* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Paulus SchoutsenandGitHub ec47216388 Use built-in test helpers on 3.8 (#34901) 2020-04-30 13:29:50 -07:00
Franck NijhofandGitHub 6d24a65313 Various light test improvements (#34131) 2020-04-13 15:33:04 +02:00
Bram KragtenandGitHub 4c4e5f3fa9 Fix demos (#32086)
* Fixes for demos

* Update vacuum.py

* Comment

* Fix tests
2020-03-11 08:16:22 -07:00
Bryan YorkandMartin Hjelmare f45f8f2f3d Emulate color temperature for non-ct lights in light groups (#23495)
* Emulate color temperature for non-ct lights in light groups

* fix tests

* Address review comments

* Fix black formatting

* Fix for pylint

* Address comments

* Fix black formatting

* Address comments
2019-09-15 20:53:05 +02:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
Erik MontnemeryandMartin Hjelmare 5376e15286 Convert some test helpers to coroutines and adjust tests (#23352)
* Convert some test helpers to coroutines

* Fix tests
2019-04-25 10:14:16 +02:00
Paulus SchoutsenandGitHub 1ddc249989 Consolidate more platforms (#22308)
* Consolidate final platforms

* Fix some tests

* Fix more tests

* Fix more tests
2019-03-23 20:22:35 -07:00