Map RGB+CCT to RGB for WLED (#133900)

pull/134569/head
Martin Mrazik 2024-12-23 22:26:38 +01:00 committed by Franck Nijhof
parent 80955ba821
commit efabb82cb6
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,9 @@ LIGHT_CAPABILITIES_COLOR_MODE_MAPPING: dict[LightCapability, list[ColorMode]] =
ColorMode.COLOR_TEMP,
],
LightCapability.RGB_COLOR | LightCapability.COLOR_TEMPERATURE: [
ColorMode.RGBWW,
# Technically this is RGBWW but wled does not support RGBWW colors (with warm and cold white separately)
# but rather RGB + CCT which does not have a direct mapping in HA
ColorMode.RGB,
],
LightCapability.WHITE_CHANNEL | LightCapability.COLOR_TEMPERATURE: [
ColorMode.COLOR_TEMP,