J. Nick Koston
26ff6d2aa0
Fix warm/cold reversal in rgbww_to_color_temperature ( #65677 )
2022-02-04 11:36:30 -08:00
Erik Montnemery
513d6cc467
Change value of device_automation constant ( #64296 )
...
* Change value of constant CONF_CHANGED_STATES
* Adjust tests
2022-01-17 16:34:40 +01:00
Erik Montnemery
e9b746e874
Add turned on or off device trigger to toggle entity ( #61089 )
...
* Add turned on or off device trigger to toggle entity
* Renamed changed_states trigger to toggled
* Adjust tests
* Fix homekit triggers test
* Add tests
* Adjust tests after rebase
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-01-03 10:41:30 +01:00
Ville Skyttä
9b437ef146
Remaining DeviceAutomationType bits ( #62508 )
...
* Use DeviceAutomationType in missed tests/components/*
* Tighten device automation type hints
2021-12-21 20:05:48 +02:00
Ville Skyttä
c5e6489475
Use DeviceAutomationType in tests/components/[h-l]* ( #62441 )
2021-12-20 22:18:53 +01:00
J. Nick Koston
94ae6ac2b2
Handle color temp to RGBWW conversion ( #61473 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-12-16 05:39:33 -06:00
Franck Nijhof
cf371ea8dd
Remove deprecated base entity classes ( #61006 )
...
* Remove deprecated base entity classes
* Clean up tests
2021-12-05 13:53:52 +01:00
Erik Montnemery
85786fd987
Make some device action tests more explicit ( #59469 )
...
* Make some device action tests more explicit
* Adjust tests
2021-11-11 12:32:51 +01: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
Erik Montnemery
39867c9b83
Convert RGBW and RGBWW colors in light turn_on calls ( #58680 )
2021-10-29 15:48:11 +02:00
J. Nick Koston
e6e8d7eded
Convert color temperature to visible color in lights ( #55219 )
2021-08-25 21:56:36 +02:00
Paulus Schoutsen
370799bd22
Revert "Improve light scene support for white mode ( #53768 )" ( #53782 )
...
This reverts commit 6ffe0f6405
.
2021-07-30 21:10:32 -07:00
Erik Montnemery
6ffe0f6405
Improve light scene support for white mode ( #53768 )
2021-07-30 12:47:26 -07:00
Erik Montnemery
87813ea991
Tweak light.valid_supported_color_modes ( #51659 )
2021-06-09 12:53:08 +02:00
Erik Montnemery
443463e19d
Emulate color_temp for lights which support color or white ( #51654 )
...
* Emulate color_temp for lights which support color or white
* Support legacy lights
* Tidy up group.light code
* Improve color_temp to white conversion
* Remove color_temp to white conversion
* Add test
* Tweak deconz test
2021-06-09 11:23:01 +02:00
Erik Montnemery
67f3e717a8
Add support for color_mode white to tasmota light ( #51608 )
2021-06-08 17:43:04 +02:00
Erik Montnemery
e560e623e9
Add color_mode white ( #51411 )
...
* Add color_mode white
* Include brightness in white parameter
* Reformat
* Improve test coverage
2021-06-06 11:13:18 +02:00
Erik Montnemery
154c849eac
Filter unsupported parameters from light service calls ( #51084 )
...
* Filter unsupported parameters from light service calls
* Silence pylint
* Fix deconz tests
* Fix mqtt tests
* Fix scene tests
* Fix trådfri emulated CT
* Fix mqtt tests
2021-05-26 08:02:59 +02:00
Joakim Sørensen
2f10f59717
Block custom integrations with missing or invalid version ( #49916 )
2021-05-17 15:48:41 +02:00
Erik Montnemery
bcd8f43e7b
Update light intents to check supported_color_modes ( #50625 )
2021-05-14 14:23:29 -07:00
Erik Montnemery
960ed13f94
Update light device actions to check supported_color_modes ( #50611 )
2021-05-14 22:58:37 +02:00
karliemeads
3a93151aa2
Improve light tests for brightness step and profiles ( #49887 )
2021-05-11 23:31:36 +02: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
Erik Montnemery
e96cbccc92
Improve color conversion for RGBWW lights ( #49807 )
2021-04-28 15:46:41 +02:00
Erik Montnemery
d7247c2ace
Correct conversion of RGB and XY colors to RGBW ( #49802 )
2021-04-28 10:12:20 +02:00
Erik Montnemery
fdadacd158
Improve color conversion for RGBW lights ( #49764 )
2021-04-27 20:07:55 +02:00
Erik Montnemery
a5a3c98aff
Make lights supporting rgbw and rgbww accept colors ( #49565 )
...
* Allow lights supporting rgbw and rgbww accepting colors
* Tweak, update tests
2021-04-23 09:25:37 +02:00
Erik Montnemery
7e4be921a8
Add helper to get an entity's supported features ( #48825 )
...
* Add helper to check entity's supported features
* Move get_supported_features to helpers/entity.py, add tests
* Fix error handling and improve tests
2021-04-10 08:19:16 +02:00
Erik Montnemery
c7584a1f92
Add color_mode support to MQTT JSON light ( #47993 )
2021-03-31 11:28:45 +02:00
Erik Montnemery
5f2326fb57
Add support for light color modes ( #47720 )
...
* 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
Drzony
99d1e3e71d
MQTT Light: Use flash attribute in async_turn_off ( #47919 )
2021-03-15 11:24:07 +01:00
Erik Montnemery
b9c2f80cab
Fix light brightness_step on multiple entities ( #47746 )
...
* Fix light brightness_step on multiple entities
* Fix comment
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-11 11:46:32 +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
Paulus Schoutsen
352d0870e3
Light significant changes + sensor tweaks ( #45583 )
2021-01-26 22:11:06 +01:00
Alexei Chetroi
daf24dc508
Always apply default light profiles, unless a profile is given ( #45450 )
2021-01-23 06:20:53 +01:00
Alexei Chetroi
ec038bc6ea
Allow any parameter of a light profile as an optional parameter ( #44079 )
...
* No code duplication for profile application
* Refactor color profile as a dataclass
* Typing
* Make color_x and color_y of a Light profile optional
* Update tests
* Make brightness field of a Light profile optional
* Transition can be of a float type
* Allow fractional transition times in light profiles
Make transition of a float type.
Allow transition to be optional with 5 column CSV files.
* Make pylint happy
* Fix dropped async_mock
* Simplify CSV row schema
2021-01-13 12:11:20 +01:00
Erik Montnemery
2d9eb25142
Fix parameters when toggling light ( #44950 )
2021-01-09 01:10:47 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
b3be708db6
Add default config if not there ( #43321 )
...
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-25 15:10:04 +01:00
Paulus Schoutsen
5dac3883b0
Stub light profiles ( #42232 )
2020-10-23 16:28:21 +02:00
Franck Nijhof
c011f3fa95
Use direct service calls in light platform tests ( #40604 )
2020-09-26 13:19:59 +02:00
Franck Nijhof
e30acfbfee
Rewrite light component tests to async pytest tests ( #40589 )
2020-09-25 19:14:25 +02:00
J. Nick Koston
4bbc737954
Fix light device trigger test flapping ( #39470 )
2020-08-30 14:34:16 -05:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Donnie
6e87c2ad3e
Support default transition in light profiles ( #36747 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-07-21 17:19:07 -07:00
Paulus Schoutsen
c33edbe5bb
Use TestCase.addCleanup ( #36560 )
2020-06-08 12:26:40 -07: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
Xiaonan Shen
5d8e6d5432
Fix light toggle service attributes ( #35483 )
2020-05-11 12:58:59 +02: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
Erik Montnemery
e4333a7a44
Rename Light to LightEntity ( #34593 )
2020-04-26 18:49:41 +02:00