8000 Adding default _white_color_mode to COLOR_TEMP to align with old code · home-assistant/core@ba38808 · GitHub
[go: up one dir, main page]

Skip to content

Commit ba38808

Browse files
author
Jason-LaDu
committed
Adding default _white_color_mode to COLOR_TEMP to align with old code
1 parent f8e609d commit ba38808

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

homeassistant/components/tuya/light.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,9 @@ def __init__(
510510
color_modes.add(ColorMode.WHITE)
511511
self._white_color_mode = ColorMode.WHITE
512512

513+
if not self._white_color_mode:
514+
self._white_color_mode = ColorMode.COLOR_TEMP # default to COLOR_TEMP
515+
513516
if (
514517
dpcode := self.find_dpcode(description.color_data, prefer_function=True)
515518
) and self.get_dptype(dpcode) == DPType.JSON:

0 commit comments

Comments
 (0)
0