Marc Mueller
cb1b917aa6
Update mypy-dev to 1.13.0a1 ( #128548 )
2024-10-17 10:30:42 +02:00
J. Nick Koston
0f29fd3e10
Switch to using fast cached_property implementation in propcache ( #127339 )
2024-10-03 13:11:02 -05:00
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
Erik Montnemery
cffa8b4feb
Update icons.json to new service schema part 2 ( #124769 )
2024-08-28 13:47:41 +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
Erik Montnemery
75c7ae7c69
Support in service descriptions for input sections ( #116100 )
2024-06-25 20:00:48 +02:00
Marc Mueller
bcd1243686
Use VolDictType to improve schema typing ( #120417 )
2024-06-25 15:15:59 +02:00
Marc Mueller
3a5acd6a57
Use VolDictType for service schemas ( #120403 )
2024-06-25 12:33:41 +02:00
Matthias Alphart
171707e8b7
Translation support for device automation extra fields ( #115892 )
...
* Translation support for device trigger extra fields
* Move extra_fields translations to backend
2024-06-12 14:10:02 +02:00
Erik Montnemery
8620bef5b0
Support shared keys starting with period in services.yaml ( #118789 )
2024-06-11 16:31:19 +02:00
Erik Montnemery
6c15351c18
Add support for common references in strings.json ( #118783 )
...
* Add support for common references in strings.json
* Update tests
2024-06-07 20:59:26 +02:00
Erik Montnemery
c0912a019c
Deduplicate light services.yaml ( #118738 )
...
* Deduplicate light services.yaml
* Remove support for .-keys
2024-06-04 11:30:34 +02:00
Erik Montnemery
01b4589ef6
Tweak light service schema ( #118720 )
2024-06-03 17:13:48 +02:00
Michael Hansen
2dc49f0410
Add platforms to intent handlers ( #118328 )
2024-05-28 16:46:08 -04:00
Michael Hansen
75ab4d2398
Add temperature slot to light turn on intent ( #118321 )
2024-05-28 14:53:49 -04:00
Michael Hansen
8079cc0464
Add description to intent handlers and use in LLM helper ( #117864 )
2024-05-21 12:54:34 -04:00
Michael Hansen
7923471b94
Intent target matching and media player enhancements ( #115445 )
...
* Working
* Tests are passing
* Fix climate
* Requested changes from review
2024-05-07 22:01:03 -04: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
Sid
ccd2e989c3
Enable ruff RUF005 and fix occurrences ( #113589 )
2024-03-16 07:37:20 -10: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
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01: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
Franck Nijhof
2a58b6e56b
Add light icon translations ( #108414 )
2024-01-20 08:35:49 +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
schelv
31cab5803c
Add Option For Kelvin Unit To Color Temperature Selector ( #103799 )
2023-11-29 12:25:06 +01:00
Erik Montnemery
645f916cf4
Remove support for deprecated light attributes from light scenes ( #104254 )
2023-11-21 07:51:41 +01:00
Erik Montnemery
0304ac5a1b
Fix restore state for light when saved attribute is None ( #103096 )
2023-10-31 10:05:03 +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