core/tests/components/group
Matthew Garrett 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
..
__init__.py
common.py Remove states UI options in group integration (#32021) 2020-02-20 08:26:41 -08:00
test_cover.py Add entity list to light and cover group attributes (#36477) 2020-06-05 21:23:52 -07:00
test_init.py Speed up group setup (#38048) 2020-07-21 17:29:57 -07:00
test_light.py Add support for exposing light effects via Google Assistant (#38575) 2020-08-08 14:28:04 -07:00
test_notify.py Use TestCase.addCleanup (#36560) 2020-06-08 12:26:40 -07:00
test_reproduce_state.py Use asynctest-mock in most places (#35109) 2020-05-03 11:27:19 -07:00