J. Nick Koston
e6e8d7eded
Convert color temperature to visible color in lights ( #55219 )
2021-08-25 21:56:36 +02:00
GitHub Action
ff14a11254
[ci skip] Translation update
2021-08-24 01:55:24 +00:00
Ville Skyttä
0095c6baeb
Improve device trigger type hinting ( #54907 )
2021-08-22 20:32:50 +02:00
Marc Mueller
69e413ac1e
Update pylint to 2.10.1 ( #54963 )
...
* Update pylint to 2.10.0
* useless-suppression
* Consider-using-tuple
* Apply suggestions from code review
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Use dict.items()
* Add pylint disable
* Use pylint 2.10.1
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-08-21 10:41:23 +02:00
Ville Skyttä
debc6d632c
Improve device condition type hinting ( #54906 )
2021-08-20 22:21:40 +02:00
Ville Skyttä
4bb2c6e00f
Improve device action type hinting ( #54850 )
...
* Improve device action type hinting
* More precise _async_get_automations type hints
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-20 07:13:25 +03:00
GitHub Action
98bcdc2cf5
[ci skip] Translation update
2021-08-07 00:10:12 +00: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
Franck Nijhof
de7a885045
Fix effect selector of light.turn_on service ( #53726 )
2021-07-29 14:26:39 -07:00
Marc Mueller
10bfc78365
Fix missing encoding with open() ( #53593 )
...
* Fix missing encoding with open()
* Fix tests
* Improve open - frontend
2021-07-28 09:41:45 +02:00
Franck Nijhof
0b44265232
Add description classes to entity components ( #53521 )
...
* Add description classes to entity components
* An -> A
* Add StateVacuumEntityDescription
2021-07-27 00:22:21 +02:00
Erik Montnemery
c6e1f8878d
Add light white parameter to light/services.yaml ( #53075 )
2021-07-16 09:03:28 +02:00
GitHub Action
f7e4db512f
[ci skip] Translation update
2021-07-09 00:09:30 +00:00
Franck Nijhof
c65d120633
Fix typo in min/max mired(s) entity class attribute ( #51921 )
2021-06-16 09:58:21 +02: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
GitHub Action
330f713e43
[ci skip] Translation update
2021-06-08 00:21:17 +00: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
GitHub Action
c81df50191
[ci skip] Translation update
2021-06-06 00:19:43 +00:00
Erik Montnemery
532626b738
Move light helper get_supported_color_modes ( #51269 )
2021-05-31 09:47:58 +02:00
Erik Montnemery
489c73b4da
Simplify device action code ( #51263 )
2021-05-31 09:47:15 +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
tkdrob
028a07d86f
Wrap up selectors ( #50794 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 14:45:17 +02:00
Franck Nijhof
f4289b3fca
Improve supported_color_modes typing in Light ( #50969 )
2021-05-22 18:48:58 +01:00
Franck Nijhof
cad4ec867b
Define light entity attributes as class variables ( #50941 )
2021-05-22 09:21:31 -07:00
Maciej Bieniek
e06a2a53c4
Add constructor return type in integrations L-N ( #50888 )
...
* Add constructor return type in integrations L-N
* Small fix
2021-05-20 13:06:44 +01:00
GitHub Action
1f80defe3a
[ci skip] Translation update
2021-05-18 00:12:13 +00:00
Franck Nijhof
eccefd154a
Extend targets for entity component services ( #50760 )
2021-05-17 14:06:50 +02:00
GitHub Action
877cb43c06
[ci skip] Translation update
2021-05-17 05:17:18 +00:00
tkdrob
a9660d5788
Add targets and selectors for services (L-M) ( #50543 )
2021-05-15 11:06:34 +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
Erik Montnemery
80b05c39cc
Fix light turn_on color conversion ( #50251 )
2021-05-07 17:08:46 +02:00
Shay Levy
20152313db
Fix light services descriptions ( #49951 )
2021-05-01 15:00:40 +02:00
karliemeads
2dedf3dd07
Apply default light profile only when light is toggled from off to on ( #49376 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-29 22:06:09 +02:00
Erik Montnemery
e96cbccc92
Improve color conversion for RGBWW lights ( #49807 )
2021-04-28 15:46:41 +02:00
Franck Nijhof
7d7b942dfa
Small typing tweaks to Light component ( #49718 )
...
* Small typing tweaks to Light component
* Use abc collection
2021-04-28 12:04:59 +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
J. Nick Koston
3fa8ffa731
Enable mccabe complexity checks in flake8 ( #49616 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-25 12:38:40 +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
b3c9d854f5
Correct min and max mired for light with color_mode support ( #49572 )
2021-04-22 16:47:33 -07:00
Marc Mueller
c07646db5d
Update typing syntax ( #49480 )
...
* Update typing syntax
* Replace typing imports with ones from collections where possible
* Changes after review
2021-04-20 17:40:41 +02:00
Erik Montnemery
3d90d6073e
Add common light helpers to test for feature support ( #49199 )
2021-04-15 20:32:27 +02:00
Erik Montnemery
ec56ae2cbc
Set deprecated supported_features for MQTT JSON light ( #49167 )
...
* Set deprecated supported_features for MQTT json light
* Update homeassistant/components/light/__init__.py
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-15 17:24:21 +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
5e8559e3cc
Validate supported_color_modes for MQTT JSON light ( #48836 )
2021-04-08 12:40:48 -07:00
Franck Nijhof
c1d5638739
Remove HomeAssistantType alias from entity components - Part 2 ( #48468 )
2021-03-29 13:24:56 -10:00
Erik Montnemery
346a724ac3
Mark base components' state_attribute @final, rename others to extra_state_attributes ( #48161 )
...
* Mark base state_attributes @final, rename others to extra_state_attributes
* Fix calendar, update tests
2021-03-21 10:38:24 +01:00