Jan-Philipp Benecke and GitHub
9580adfde9
Use new setup_test_component_platform helper instead of test fixture for light platform ( #114200 )
2024-03-26 00:17:16 +01:00
Jan-Philipp Benecke and GitHub
ff6812a798
Split light fixture from implementation to only import when fixture is actually used ( #113892 )
...
* Split light fixture from implementation to only import when fixture is actually used
* Non-local import
2024-03-21 10:49:32 +01:00
Jan-Philipp Benecke and GitHub
638020f168
Remove deprecated hass.components from group light tests and use fixture ( #113862 )
2024-03-20 08:45:50 +01:00
Marc Mueller and GitHub
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
Erik Montnemery and GitHub
fe4dd2cb93
Improve color mode handling in light groups ( #109390 )
...
* Improve color mode handling in light groups
* Update config flow test
2024-02-03 09:00:00 +01:00
Erik Montnemery and GitHub
4229c35fcd
Improve color mode handling in MockLight ( #109298 )
2024-02-02 09:49:32 +01:00
Jan-Philipp Benecke and GitHub
04a497343d
Update f-g* tests to use entity & device registry fixtures ( #103841 )
2023-11-12 13:07:38 +01:00
Marc Mueller and GitHub
a9ade1f84d
Use asyncio.timeout [core] ( #98447 )
2023-08-15 08:36:05 -05:00
J. Nick Koston and GitHub
ea57f78392
Add slots to the service registry ( #95857 )
2023-07-05 15:59:36 +02:00
Franck Nijhof and GitHub
9030ca05b1
Enable Ruff SIM118 ( #87772 )
2023-02-15 12:39:12 +01:00
epenet and GitHub
89e4ee5320
Add type hints to integration tests (part 8) ( #87982 )
2023-02-13 11:13:48 +01:00
epenet and GitHub
7a4d15a657
Add type hints to integration tests (f-g) ( #87700 )
2023-02-08 13:33:52 +01:00
Erik Montnemery and GitHub
7b247a79cf
Correct min/max mireds for lights which use K for color temp ( #79998 )
2022-10-10 16:45:38 +03:00
Erik Montnemery and GitHub
2ee6ea9877
Adapt group to color temperature in K ( #79719 )
...
* Adapt group to color temperature in K
* Adjust tests
* Adjust tests
2022-10-10 14:57:22 +02:00
Erik Montnemery and GitHub
60c8d95a77
Remove white_value support from light ( #76926 )
2022-08-18 08:21:05 -04:00
Erik Montnemery and GitHub
05e33821fd
Remove white_value support from group light ( #76924 )
2022-08-17 08:01:50 -04:00
Erik Montnemery and GitHub
9b8c3e37bb
Improve group tests ( #73630 )
2022-06-23 21:38:17 +02:00
epenet and GitHub
7d2363ad22
Use light enums in tests ( #70801 )
2022-04-26 16:32:00 +02:00
0720b0f891
Add all option to light group ( #68447 )
...
Co-authored-by: Franck Nijhof <[email protected] >
Co-authored-by: Erik Montnemery <[email protected] >
2022-03-22 16:09:18 +01:00
Erik Montnemery and GitHub
3f7b7187ab
Fix controlling nested groups ( #66176 )
2022-02-09 14:27:46 +01:00
Paulus Schoutsen and GitHub
31153ac155
Move fixtures part 1 ( #58902 )
2021-11-01 20:47:05 -07:00
Erik Montnemery and GitHub
72d7817dbf
Update light turn_on schema to coerce colors to tuple before asserting sequence type ( #58670 )
...
* Make color_name_to_rgb return a tuple
* Tweak
* Tweak
* Update test
* Tweak test
2021-10-29 15:51:14 +02:00
J. Nick Koston and GitHub
e6e8d7eded
Convert color temperature to visible color in lights ( #55219 )
2021-08-25 21:56:36 +02:00
Erik Montnemery and GitHub
ee3e27c82a
Add support for white to light groups ( #55082 )
2021-08-23 18:29:44 +02:00
Franck Nijhof and GitHub
b4a50f5459
Add unique ID support to light, cover and media player groups ( #53225 )
2021-07-20 13:56:23 +02:00
Erik Montnemery and GitHub
d2804433d3
Select onoff and brightness color modes last for light groups ( #51054 )
2021-05-25 08:49:24 -07:00
Joakim Sørensen and GitHub
2f10f59717
Block custom integrations with missing or invalid version ( #49916 )
2021-05-17 15:48:41 +02:00
Franck Nijhof and GitHub
7221b1e09d
Sort effect lists in light groups ( #50620 )
2021-05-14 21:43:43 -07:00
Erik Montnemery and GitHub
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 Nijhof and GitHub
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Franck Nijhof and GitHub
64d3cdfb41
Add nested light group test ( #41764 )
2020-10-13 08:37:16 -05:00
J. Nick Koston and GitHub
3880ac0b0d
Ensure group state is recalculated when re-adding on reload ( #40497 )
2020-09-23 20:55:32 +02:00
J. Nick Koston and GitHub
a778690b64
Support reloading the group notify platform ( #39511 )
2020-09-03 00:12:07 +02:00
Paulus Schoutsen and GitHub
6de02fc1b9
Fix some more usages of asynctest ( #39570 )
2020-09-02 14:53:07 +02:00
Franck Nijhof and GitHub
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
J. Nick Koston and GitHub
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 Koston and GitHub
63ebea1706
Ensure the context is passed to group changes ( #39221 )
2020-08-26 00:22:10 +02:00
Matthew Garrett and GitHub
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 Nijhof and GitHub
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 <[email protected] >
Co-authored-by: Paulus Schoutsen <[email protected] >
2020-06-05 21:23:52 -07:00
Paulus Schoutsen and GitHub
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 Schoutsen and GitHub
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Franck Nijhof and GitHub
6d24a65313
Various light test improvements ( #34131 )
2020-04-13 15:33:04 +02:00
Bram Kragten and GitHub
4c4e5f3fa9
Fix demos ( #32086 )
...
* Fixes for demos
* Update vacuum.py
* Comment
* Fix tests
2020-03-11 08:16:22 -07:00
Bryan York and Martin 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 Montnemery and Martin 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 Schoutsen and GitHub
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