epenet
2699eb62bd
Rename DOMAIN_DATA HassKey constants to DATA_COMPONENT ( #126746 )
...
* Rename DOMAIN_DATA HassKey constant to DATA
* DATA -> DATA_COMPONENT
2024-09-25 15:53:58 +02:00
epenet
0abde86cf9
Use HassKey in light ( #126333 )
2024-09-22 14:18:57 +02:00
J. Nick Koston
a67b6c5ba6
Avoid recording additional light attributes ( #121776 )
2024-07-12 16:27:50 +02:00
Marc Mueller
6bceb8ec48
Add some more VolDictType annotations ( #120610 )
2024-06-26 22:44:43 +02:00
epenet
f65d91f6d2
Refactor PLATFORM_SCHEMA imports in platforms ( #120564 )
2024-06-26 15:44:59 +02:00
Marc Mueller
d527113d59
Improve schema typing (3) ( #120521 )
2024-06-26 11:30:07 +02:00
Marc Mueller
3a5acd6a57
Use VolDictType for service schemas ( #120403 )
2024-06-25 12:33:41 +02:00
Sid
b456d97e65
Replace pylint protected-access with Ruff SLF001 ( #115735 )
2024-05-06 20:33:26 +02:00
Sid
223fefbbfa
Enable Ruff RUF018 ( #115485 )
2024-04-13 09:56:33 +02:00
Sid
0d66d298ec
Enable Ruff RET504 ( #114528 )
...
* Enable Ruff RET504
* fix test
* Use noqa instead of cast
* fix sonos RET504
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-06 11:07:37 +02:00
Marc Mueller
816ce116bf
Remove unnecessary functools.cached_property backport ( #114239 )
2024-04-04 11:24:26 +02:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
J. Nick Koston
900e0c07bf
Load light profiles in a task to avoid delaying platform setup ( #114038 )
2024-03-23 10:51:03 +01:00
J. Nick Koston
b26928878f
Remove group integration platforms that use the default states ( #113562 )
...
Remove group integration platforms that use the default
There is no need to register platforms that use the defaults
as the group code already uses STATE_ON/STATE_OFF when there
are no on/off states in the GroupIntegrationRegistry
2024-03-15 20:51:21 -04:00
J. Nick Koston
c3b5e819c5
Fix group loading too late resulting in incorrect state ( #113262 )
2024-03-13 19:18:15 -10:00
Marc Mueller
59a6035d3f
Add empty line after module docstring [j-m] ( #112700 )
2024-03-08 09:01:29 -05:00
Erik Montnemery
770e48d512
Simplify color mode logic in Tuya light ( #110327 )
...
* Simplify color mode logic in Tuya light
* Remove exclusion from LightEntity.__should_report_light_issue
* Fix test
2024-03-06 18:28:12 +01:00
puddly
016f2c7581
Improve ZHA group color modes ( #111669 )
...
* Set the color mode based on supported color modes
* Replace `zha` with `tuya` in unit test
2024-02-28 17:20:19 -05:00
Erik Montnemery
6bd7a74fab
Update list of integrations known to violate color mode rules ( #111647 )
2024-02-27 18:17:26 +01:00
Martin Hjelmare
058eec114b
Freeze light profiles for further development ( #110946 )
2024-02-19 16:02:27 +01:00
Erik Montnemery
1764c031df
Warn when lights violate color mode rules ( #110336 )
...
* Warn when lights violate color mode rules
* Update test
* Remove redundant warning, add tests
* Improve test coverage
2024-02-12 17:43:50 +01:00
Erik Montnemery
c3de193e2e
Adjust color_mode checks when lights render effects ( #108737 )
...
* Adjust color_mode checks when lights render effects
* Improve comment
* Avoid calling effect property if light does not support effects
* Fix test
2024-01-24 15:44:45 +01:00
Erik Montnemery
8fa93f6fe5
Bump comments in light indicating backwards compatibility plan ( #108770 )
2024-01-24 13:49:26 +01:00
J. Nick Koston
3f1263a533
Refactor light platform to avoid duplicate property calls ( #106857 )
2024-01-02 12:49:53 +01:00
J. Nick Koston
7702f971fb
Use built-in set methods for light supported checks ( #106625 )
2023-12-29 08:37:44 +01:00
J. Nick Koston
e4a25825d3
Migrate light entity to use contains for LightEntityFeature with deprecation warnings ( #106622 )
2023-12-28 15:45:06 -10:00
J. Nick Koston
3d9fc8ed77
Add support for attribute caching to the light platform ( #106260 )
2023-12-23 08:04:30 -10:00
Erik Montnemery
104bcc64b7
Allow inheriting base component entity descriptions in frozen dataclasses ( #105512 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-15 23:33:50 -10:00
Niccolò Maggioni
0232c8dcb0
Add temperature to the light color mode parameter fallbacks ( #86026 )
...
* Add color temperature to the color mode fallbacks
* Manually add ATTR_COLOR_TEMP since ATTR_COLOR_TEMP_KELVIN is pre-parsed
* Include the legacy ATTR_COLOR_TEMP attribute in the tests
* Apply suggestions from code review
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Add citation for McCamy's approximation formula
If still existing, also see page 3 of https://www.st.com/resource/en/application_note/an5638-how-correlated-color-temperature-is-calculated-by-vd6283-stmicroelectronics.pdf
* Update homeassistant/util/color.py
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-12-01 08:26:07 +01:00
Paul Bottein
c98c18f25e
Return 'None' for light attributes when off instead of removing them ( #101946 )
2023-10-19 01:08:08 +02:00
Erik Montnemery
df73850f56
Move definition of attributes excluded from history to entity classes ( #100430 )
...
* Move definition of attributes excluded from history to entity classes
* Revert change which should be in a follow-up PR
* Fix sun unrecorded attributes
* Fix input_select unrecorded attributes
2023-09-21 15:02:47 +02:00
Franck Nijhof
30058297cf
Migrate backported StrEnum to built-in StrEnum ( #97101 )
2023-07-23 23:19:24 +02:00
Marc Mueller
77f38e33e5
Import names from typing instead of typing_extensions [3.11] ( #97065 )
2023-07-22 17:03:44 -05:00
epenet
bdf29b594f
Replace comments with docstring in ColorMode enum ( #90408 )
2023-03-28 16:32:39 +02:00
Franck Nijhof
b1a3bfb298
Drop flake8 in favor of Ruff ( #89863 )
2023-03-17 13:30:06 +01:00
Erik Montnemery
ae127e7687
Change light white service call attribute to accept True ( #89803 )
2023-03-16 23:02:56 -04:00
Marc Mueller
f7b39aa4a8
Add Self typing (3) [mypy 1.0] ( #87600 )
2023-02-06 22:30:07 -06:00
Franck Nijhof
79b52a2b41
Stricter pylint message control ( #86154 )
2023-01-20 13:47:55 +01:00
Franck Nijhof
cf5fca0464
Code styling tweaks to core entity components ( #85460 )
2023-01-08 13:40:08 -10:00
epenet
7f1e1ed1d8
Enforce LightEntityFeature ( #82460 )
2022-11-22 07:14:47 +01:00
epenet
dd7bc7971f
Adjust type hints for LightEntityFeature ( #82251 )
2022-11-17 12:46:42 +01:00
epenet
a91abebea8
Use IntFlag for EntityFeature ( #81903 )
2022-11-16 12:43:17 +01:00
Erik Montnemery
7b247a79cf
Correct min/max mireds for lights which use K for color temp ( #79998 )
2022-10-10 16:45:38 +03:00
Erik Montnemery
96a8beb29f
Tweak comment in LightEntity ( #79750 )
2022-10-06 21:17:24 +02:00
Lars
61deb54ec8
Fix max_color_temp_kelvin ( #79738 )
...
fix max_color_temp_kelvin
2022-10-06 19:21:57 +02:00
Erik Montnemery
47d0598e75
Use Kelvin as the preferred color temperature unit ( #79591 )
...
* Use Kelvin as the preferred white temperature unit
* Update homekit
* Adjust tests
2022-10-06 12:22:39 +02:00
Marc Mueller
bbf54e6f44
Improve light typing ( #78641 )
2022-09-17 17:37:39 +02:00
epenet
de7e12eeaf
Enable disallow-any-generics in light ( #78499 )
2022-09-15 08:47:05 -04:00
epenet
1fcab33653
Improve type hints in light ( #78349 )
2022-09-14 13:36:20 +02:00
Erik Montnemery
b21f8c9ea8
Remove use of deprecated SUPPORT_* constants from MQTT light ( #77828 )
...
* Remove use of deprecated SUPPORT_* constants from MQTT light
* Refactor
2022-09-08 11:21:46 +02:00