Skip to content

Commit 70a58b4

Browse files
committed
Suppress color_temp warning if color_temp_kelvin is provided
Signed-off-by: Avi Miller <[email protected]>
1 parent f93b1cc commit 70a58b4

File tree

1 file changed

+1
-1
lines changed
  • homeassistant/components/lifx

1 file changed

+1
-1
lines changed

homeassistant/components/lifx/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def find_hsbk(hass: HomeAssistant, **kwargs: Any) -> list[float | int | None] |
113113
saturation = int(saturation / 100 * 65535)
114114
kelvin = 3500
115115

116-
if _ATTR_COLOR_TEMP in kwargs:
116+
if ATTR_COLOR_TEMP_KELVIN not in kwargs and _ATTR_COLOR_TEMP in kwargs:
117117
# added in 2025.1, can be removed in 2026.1
118118
_LOGGER.warning(
119119
"The 'color_temp' parameter is deprecated. Please use 'color_temp_kelvin' for"

0 commit comments

Comments
 (0)