core/tests/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
common.py
conftest.py
test_device_action.py Use real devices in light device action tests (#102722) 2023-10-24 21:38:24 +00:00
test_device_condition.py Use real devices in light device condition tests (#102756) 2023-10-25 09:42:35 +02:00
test_device_trigger.py Use real devices in light device trigger tests (#102689) 2023-10-24 21:58:37 +02:00
test_init.py Add temperature to the light color mode parameter fallbacks (#86026) 2023-12-01 08:26:07 +01:00
test_intent.py
test_recorder.py
test_reproduce_state.py Remove support for deprecated light attributes from light scenes (#104254) 2023-11-21 07:51:41 +01:00
test_significant_change.py