Erik Montnemery
3f7b7187ab
Fix controlling nested groups ( #66176 )
2022-02-09 14:27:46 +01:00
Franck Nijhof
60b2cdd069
Allow binary sensor state to be None ( #60193 )
2021-12-22 12:24:29 +01:00
Erik Montnemery
3323263c94
Flip behavior for grouped locks ( #62580 )
2021-12-22 12:14:45 +01:00
Erik Montnemery
49a27e12ad
Add support to entity registry for overriding device_class ( #59985 )
2021-11-22 08:38:06 -08:00
Paulus Schoutsen
31153ac155
Move fixtures part 1 ( #58902 )
2021-11-01 20:47:05 -07:00
Erik Montnemery
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
def7c80e71
Add support for fan groups ( #57941 )
...
* Add support for fan groups
* dry
* dry
* fix refactor error
* tweaks
* wip
* tweaks
* tweaks
* fix
* fixes
* coverage
* tweaks
2021-10-26 10:32:49 +02:00
Erik Montnemery
7e34860615
Improve state of cover groups ( #57313 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-10-08 09:52:58 -07:00
Regev Brody
115bb39c10
Fix cover group to handle unknown state properly ( #56739 )
...
* fix cover group unknown state
* fix cover grup state
* fix cover group issue
2021-09-29 08:37:16 +02:00
Brian Egge
e638e5bb42
Add component for binary sensor groups ( #55365 )
...
* Add component for binary sensor groups
https://github.com/home-assistant/home-assistant.io/pull/19239
* Accidental push over prior commit
* Add test for any case
* Add unavailable attribute and tests for unique_id
* Added tests for attributes
link to documentation: https://github.com/home-assistant/home-assistant.io/pull/19297
2021-09-13 15:28:37 +02:00
J. Nick Koston
e6e8d7eded
Convert color temperature to visible color in lights ( #55219 )
2021-08-25 21:56:36 +02:00
Erik Montnemery
20d8c4da90
Report average of position and tilt_position for cover groups ( #52713 )
2021-08-25 16:12:29 +02:00
Erik Montnemery
ee3e27c82a
Add support for white to light groups ( #55082 )
2021-08-23 18:29:44 +02:00
Franck Nijhof
b4a50f5459
Add unique ID support to light, cover and media player groups ( #53225 )
2021-07-20 13:56:23 +02:00
definitio
132ee972bd
Add media_player.group ( #38855 )
...
* Add media group
* Minor improvements
* Use the async api for all methods
* Improve type hints
* Add missing methods
* Add tests
* Rename HomeAssistantType —> HomeAssistant
* Add more tests
* Fix unknown state
* Make some callbacks
* Add more tests
* Fix unknown state properly
* Fix names for callbacks
* Fix stop service test
* Improve tests
2021-06-02 21:25:15 +02:00
Erik Montnemery
d2804433d3
Select onoff and brightness color modes last for light groups ( #51054 )
2021-05-25 08:49:24 -07:00
Joakim Sørensen
2f10f59717
Block custom integrations with missing or invalid version ( #49916 )
2021-05-17 15:48:41 +02:00
Franck Nijhof
7221b1e09d
Sort effect lists in light groups ( #50620 )
2021-05-14 21:43:43 -07:00
Erik Montnemery
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
5a2b5fe7c5
Yoda assertion style removed is ( #48142 )
2021-03-20 13:55:10 +01:00
Franck Nijhof
8a56dbf587
Add flake8 comprehensions checks to pre-commit & CI ( #48111 )
2021-03-19 13:41:09 +01:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
J. Nick Koston
8b63e22c99
Bypass the slow update warning for group updates ( #43209 )
2020-11-14 21:46:24 +01:00
Paulus Schoutsen
5dac3883b0
Stub light profiles ( #42232 )
2020-10-23 16:28:21 +02:00
Tim Werner
3f623ad453
Rewrite group unittest to pytest style ( #42159 )
2020-10-23 12:05:07 +02:00
Franck Nijhof
64d3cdfb41
Add nested light group test ( #41764 )
2020-10-13 08:37:16 -05:00
J. Nick Koston
e03b3e2310
Restore group support to plant entities ( #41519 )
2020-10-09 08:37:27 +02:00
J. Nick Koston
896f64d02b
Fix group tests when run in parallel ( #41446 )
2020-10-08 00:01:33 -05:00
J. Nick Koston
f50976a0b3
Switch to asyncio.wait for slow update warning implementation ( #41184 )
2020-10-05 15:28:15 +02:00
J. Nick Koston
78dfaa72a2
Ensure lights added after group is created have the correct state ( #41034 )
2020-10-03 21:29:41 +02:00
J. Nick Koston
42ad36e9f8
Switch group to use None for the state unknown case ( #40792 )
2020-09-30 17:25:50 +02:00
J. Nick Koston
9ccebdb8d5
Refactor group to extend domains that can be grouped ( #40607 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-09-30 09:13:53 -05:00
J. Nick Koston
3880ac0b0d
Ensure group state is recalculated when re-adding on reload ( #40497 )
2020-09-23 20:55:32 +02:00
J. Nick Koston
a778690b64
Support reloading the group notify platform ( #39511 )
2020-09-03 00:12:07 +02:00
Paulus Schoutsen
6de02fc1b9
Fix some more usages of asynctest ( #39570 )
2020-09-02 14:53:07 +02:00
J. Nick Koston
3e9963a216
Overcome group concurrent setup limitation ( #39483 )
...
With a lot of groups the limitation that groups
had to be setup one at a time could account for
the bulk of startup time.
2020-09-02 10:14:16 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
J. Nick Koston
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
63ebea1706
Ensure the context is passed to group changes ( #39221 )
2020-08-26 00:22:10 +02:00
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
J. Nick Koston
4a5a09a0e9
Speed up group setup ( #38048 )
2020-07-21 17:29:57 -07:00
J. Nick Koston
4acc6f333e
Improve scalability of state change event routing ( #37174 )
2020-06-27 14:46:45 -07:00
Franck Nijhof
f42eb0d5ca
Fix missing service call context in multiple locations ( #37094 )
2020-06-25 17:09:52 -07:00
Paulus Schoutsen
c33edbe5bb
Use TestCase.addCleanup ( #36560 )
2020-06-08 12:26:40 -07:00
Thomas Lovén
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
Andre Lengwenus
2b5bb8dac0
Cover group considers opening and closing states ( #36203 )
2020-06-03 18:44:04 +02:00
Paulus Schoutsen
276f3afb00
Do async_setup_platform in background ( #36244 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-05-31 22:18:30 -07:00
Paulus Schoutsen
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
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00