core/homeassistant/components/light
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
..
__init__.py Add temperature to the light color mode parameter fallbacks (#86026) 2023-12-01 08:26:07 +01:00
device_action.py
device_condition.py
device_trigger.py
group.py
intent.py
light_profiles.csv
manifest.json
reproduce_state.py Remove support for deprecated light attributes from light scenes (#104254) 2023-11-21 07:51:41 +01:00
services.yaml Add Option For Kelvin Unit To Color Temperature Selector (#103799) 2023-11-29 12:25:06 +01:00
significant_change.py
strings.json