mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Emulate color temperature for non-ct lights in light groups (#23495)
* Emulate color temperature for non-ct lights in light groups * fix tests * Address review comments * Fix black formatting * Fix for pylint * Address comments * Fix black formatting * Address comments
This commit is contained in:
committed by
Martin Hjelmare
parent
fd359c6222
commit
f45f8f2f3d
@@ -308,7 +308,7 @@ class ColorSettingTrait(_Trait):
|
||||
|
||||
if features & light.SUPPORT_COLOR_TEMP:
|
||||
# Max Kelvin is Min Mireds K = 1000000 / mireds
|
||||
# Min Kevin is Max Mireds K = 1000000 / mireds
|
||||
# Min Kelvin is Max Mireds K = 1000000 / mireds
|
||||
response["colorTemperatureRange"] = {
|
||||
"temperatureMaxK": color_util.color_temperature_mired_to_kelvin(
|
||||
attrs.get(light.ATTR_MIN_MIREDS)
|
||||
|
||||
Reference in New Issue
Block a user