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
Franck Nijhof
8a56dbf587
Add flake8 comprehensions checks to pre-commit & CI ( #48111 )
2021-03-19 13:41:09 +01:00
Marc Mueller
25a13d1554
Update typing 10 ( #48071 )
2021-03-18 13:07:04 +01: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
HomeAssistant Azure
c11b85af2f
[ci skip] Translation update
2021-03-16 00:04:36 +00: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
Shay Levy
215ab5fd40
Add type hints to LightEntity ( #47024 )
2021-03-08 21:21:45 +01:00
Franck Nijhof
ea4bbd771f
Add service names to previously enriched services ( #46929 )
...
Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>
2021-02-23 14:10:13 +01:00
Franck Nijhof
c8ffac20b9
Add name to services ( #46905 )
2021-02-22 16:26:46 +01:00
Franck Nijhof
6ad7020f99
Add Home Assistant color ( #46751 )
2021-02-19 13:30:27 +01:00
Franck Nijhof
c0cdc0fe79
Add advanced selectors to Light service definitions ( #46732 )
2021-02-18 16:15:16 +01:00
Franck Nijhof
62cfe24ed4
Add advanced service parameter flag ( #46727 )
2021-02-18 12:59:46 +01:00
Bram Kragten
6986fa4eb6
Add target to services.yaml ( #46410 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-02-16 09:35:27 +01:00
Franck Nijhof
dd8d4471ec
Postponed evaluation of annotations for integrations ( #46455 )
2021-02-12 18:54:00 +01:00
HomeAssistant Azure
ce159d7db3
[ci skip] Translation update
2021-02-06 00:07:22 +00:00
Paulus Schoutsen
959ed6d077
Update translations
2021-02-03 11:46:49 +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
Paulus Schoutsen
5dac3883b0
Stub light profiles ( #42232 )
2020-10-23 16:28:21 +02:00
HomeAssistant Azure
b102ad731f
[ci skip] Translation update
2020-10-22 00:09:52 +00:00
HomeAssistant Azure
59a3add24a
[ci skip] Translation update
2020-10-19 00:03:28 +00:00
Matthias Alphart
93a9a11065
Add config validator helper positive_float ( #41640 )
2020-10-11 22:04:49 +02:00
HomeAssistant Azure
6ae12c3faf
[ci skip] Translation update
2020-10-10 00:05:05 +00:00
J. Nick Koston
a8a2109cef
Convert last remaining async_add_job in light to async_add_executor_job ( #41518 )
2020-10-09 09:32:55 +02:00
HomeAssistant Azure
29aea5a66c
[ci skip] Translation update
2020-10-09 00:04:33 +00: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
HomeAssistant Azure
e9e17122e7
[ci skip] Translation update
2020-09-28 00:03:28 +00:00
HomeAssistant Azure
75659ff787
[ci skip] Translation update
2020-09-23 00:05:01 +00:00
HomeAssistant Azure
587e3f1eb2
[ci skip] Translation update
2020-09-21 00:02:47 +00:00
HomeAssistant Azure
6e79d49c80
[ci skip] Translation update
2020-09-10 00:04:20 +00:00
J. Nick Koston
251d8919ea
Add domain filter support to async_all to match async_entity_ids ( #39725 )
...
This avoids copying all the states before applying
the filter
2020-09-06 23:20:32 +02:00
HomeAssistant Azure
5ce62c8446
[ci skip] Translation update
2020-09-02 00:03:29 +00:00
Ville Skyttä
1bf2c4d976
Upgrade pylint to 2.6.0 ( #39363 )
2020-08-29 07:59:24 +02: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
HomeAssistant Azure
d488c779fc
[ci skip] Translation update
2020-06-01 00:03:28 +00:00
HomeAssistant Azure
e94f44f294
[ci skip] Translation update
2020-05-17 00:02:56 +00:00
HomeAssistant Azure
9586e9ebef
[ci skip] Translation update
2020-05-15 00:02:56 +00:00
Paulus Schoutsen
0efeefe3b2
Update translations
2020-05-13 11:27:21 -07:00
Xiaonan Shen
5d8e6d5432
Fix light toggle service attributes ( #35483 )
2020-05-11 12:58:59 +02:00
HomeAssistant Azure
78f846d532
[ci skip] Translation update
2020-05-03 00:02:26 +00:00
HomeAssistant Azure
bd72ddda3c
[ci skip] Translation update
2020-05-01 00:02:55 +00:00
HomeAssistant Azure
5d37eb8eeb
[ci skip] Translation update
2020-04-30 00:03:17 +00:00
HomeAssistant Azure
7faba60e83
[ci skip] Translation update
2020-04-29 00:03:31 +00:00
Erik Montnemery
e4333a7a44
Rename Light to LightEntity ( #34593 )
2020-04-26 18:49:41 +02:00
HomeAssistant Azure
90e0a1af8a
[ci skip] Translation update
2020-04-26 00:02:45 +00:00
Joakim Sørensen
730a257f3c
Rename translations dir for integrations ( #34494 )
2020-04-21 16:11:05 -07:00
Franck Nijhof
bc5a2da7b7
Add transition support to scenes, cleanup blocking parameter ( #34434 )
2020-04-20 18:07:50 -07:00
Paulus Schoutsen
95357dfc55
Update translations
2020-04-20 16:33:54 -07:00
Paulus Schoutsen
d560e8245a
Import state strings ( #34451 )
2020-04-20 16:25:35 -07:00
Paulus Schoutsen
0d60d40512
Update translations
2020-04-16 13:00:10 -07:00
Paulus Schoutsen
6119e79023
Migrate frontend translations of domains to backend ( #34294 )
2020-04-16 11:52:27 -07:00
HomeAssistant Azure
0d8c75d9ce
[ci skip] Translation update
2020-04-16 00:04:36 +00:00
Paulus Schoutsen
f06aeea385
Update translations
2020-04-15 09:51:07 -07:00
HomeAssistant Azure
55bec20b02
[ci skip] Translation update
2020-04-15 00:09:19 +00:00
J. Nick Koston
e0a7ea52fd
Reduce loss of precision when setting light percent brightness ( #34208 )
...
* Reduce loss of precision when setting light percent brightness
This part of an effort to fix all the round trip light
brightness percentages that cause errors with homekit
, alexa, and other devices that use percentage.
* fix demo light test
2020-04-14 13:26:18 -05:00
HomeAssistant Azure
e1d66f6fdd
[ci skip] Translation update
2020-04-14 00:07:23 +00:00
Robert Chmielowiec
7bd6f5413d
Add flash light device actions ( #33689 )
...
* Add flash light device actions
* Single action with extra fields
* Change extra_fields to dictionary
2020-04-13 10:30:20 -07:00
Franck Nijhof
6d24a65313
Various light test improvements ( #34131 )
2020-04-13 15:33:04 +02:00
HomeAssistant Azure
f7b822d000
[ci skip] Translation update
2020-04-06 00:02:13 +00:00
springstan
c20a965eda
Improve string formatting v3 ( #33667 )
...
* Improve string formatting v3
* Address review comment
2020-04-05 01:32:58 +02:00
HomeAssistant Azure
8a8ee95336
[ci skip] Translation update
2020-04-04 00:07:23 +00:00
Paulus Schoutsen
f1d3c0d19b
Remove unused manifest fields ( #33595 )
2020-04-03 12:58:19 -07:00
Martin Hjelmare
1d2713b0ea
Clarify light reproduce state deprecation warning ( #33531 )
2020-04-02 09:52:46 -07:00
HomeAssistant Azure
763ed0dc7b
[ci skip] Translation update
2020-03-24 13:18:47 +00:00
Paulus Schoutsen
397238372e
Remove group as a dependency from entity integrations ( #32870 )
...
* remove group dependency
* Update device sun light trigger
* Add zone dep back to device tracker
2020-03-16 14:47:44 -07:00
Franck Nijhof
743166d284
Fix brightness_pct in light device turn_on action ( #32787 )
2020-03-13 21:58:32 -07:00
HomeAssistant Azure
104350265d
[ci skip] Translation update
2020-03-04 18:13:24 +00:00
HomeAssistant Azure
da959c8f7b
[ci skip] Translation update
2020-03-02 00:31:47 +00:00
Erik Montnemery
c4ac3155e4
Add brightness to light device turn_on action ( #32219 )
...
* Add support for setting brightness
* Remove default brightness
2020-02-29 13:33:20 +01:00
HomeAssistant Azure
2d4ee01c1a
[ci skip] Translation update
2020-02-29 00:31:43 +00:00
springstan
157f972d72
Use f-strings in integrations starting with "H" - "L" ( #32265 )
...
* Use f-strings in integrations starting with "H"
* Use f-strings in integrations starting with "I"
* Use f-strings in integrations starting with "J"
* Use f-strings in integrations starting with "K"
* Use f-strings in integrations starting with "L"
* Fix lint error
* Use join instead of f-string in homekit_controller
* Use local variables with f-strings
* Fix lint error
* Escape the characters in f-string
* Sort imports with isort in homeworks light
* Fix pylint error
* Fix broken tests
* Fix broken tests v2
2020-02-28 12:39:29 +01:00
HomeAssistant Azure
fefbe02d44
[ci skip] Translation update
2020-02-28 00:31:47 +00:00
HomeAssistant Azure
92988d60a7
[ci skip] Translation update
2020-02-27 00:31:50 +00:00
Erik Montnemery
c92aa30663
Add missing translations for light actions ( #32216 )
2020-02-26 10:24:43 -08:00