* 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> |
||
---|---|---|
.. | ||
auth | ||
components | ||
fixtures | ||
hassfest | ||
helpers | ||
pylint | ||
resources | ||
scripts | ||
snapshots | ||
test_util | ||
testing_config | ||
util | ||
__init__.py | ||
common.py | ||
conftest.py | ||
ignore_uncaught_exceptions.py | ||
patch_time.py | ||
ruff.toml | ||
syrupy.py | ||
test_bootstrap.py | ||
test_config.py | ||
test_config_entries.py | ||
test_core.py | ||
test_data_entry_flow.py | ||
test_exceptions.py | ||
test_loader.py | ||
test_main.py | ||
test_requirements.py | ||
test_runner.py | ||
test_setup.py | ||
test_test_fixtures.py | ||
typing.py |