diff --git a/homeassistant/components/lifx/const.py b/homeassistant/components/lifx/const.py index f0505f9a4fd..2959f958aab 100644 --- a/homeassistant/components/lifx/const.py +++ b/homeassistant/components/lifx/const.py @@ -73,6 +73,3 @@ LIFX_CEILING_PRODUCT_IDS = {176, 177, 201, 202} LIFX_128ZONE_CEILING_PRODUCT_IDS = {201, 202} _LOGGER = logging.getLogger(__package__) - -# _ATTR_COLOR_TEMP deprecated - to be removed in 2026.1 -_ATTR_COLOR_TEMP = "color_temp" diff --git a/homeassistant/components/lifx/manager.py b/homeassistant/components/lifx/manager.py index e9beb1d8cc7..0cb5e7f56c7 100644 --- a/homeassistant/components/lifx/manager.py +++ b/homeassistant/components/lifx/manager.py @@ -33,7 +33,7 @@ from homeassistant.helpers.target import ( async_extract_referenced_entity_ids, ) -from .const import _ATTR_COLOR_TEMP, ATTR_THEME, DOMAIN +from .const import ATTR_THEME, DOMAIN from .coordinator import LIFXUpdateCoordinator from .util import convert_8_to_16, find_hsbk @@ -135,8 +135,6 @@ LIFX_EFFECT_PULSE_SCHEMA = cv.make_entity_service_schema( vol.Exclusive(ATTR_COLOR_TEMP_KELVIN, COLOR_GROUP): vol.All( vol.Coerce(int), vol.Range(min=1500, max=9000) ), - # _ATTR_COLOR_TEMP deprecated - to be removed in 2026.1 - vol.Exclusive(_ATTR_COLOR_TEMP, COLOR_GROUP): cv.positive_int, ATTR_PERIOD: vol.All(vol.Coerce(float), vol.Range(min=0.05)), ATTR_CYCLES: vol.All(vol.Coerce(float), vol.Range(min=1)), ATTR_MODE: vol.In(PULSE_MODES), diff --git a/homeassistant/components/lifx/util.py b/homeassistant/components/lifx/util.py index c99880891d2..4dc498a5ee4 100644 --- a/homeassistant/components/lifx/util.py +++ b/homeassistant/components/lifx/util.py @@ -26,7 +26,6 @@ from homeassistant.helpers import device_registry as dr from homeassistant.util import color as color_util from .const import ( - _ATTR_COLOR_TEMP, _LOGGER, DEFAULT_ATTEMPTS, DOMAIN, @@ -115,17 +114,6 @@ def find_hsbk(hass: HomeAssistant, **kwargs: Any) -> list[float | int | None] | saturation = int(saturation / 100 * 65535) kelvin = 3500 - if ATTR_COLOR_TEMP_KELVIN not in kwargs and _ATTR_COLOR_TEMP in kwargs: - # added in 2025.1, can be removed in 2026.1 - _LOGGER.warning( - "The 'color_temp' parameter is deprecated. Please use 'color_temp_kelvin' for" - " all service calls" - ) - kelvin = color_util.color_temperature_mired_to_kelvin( - kwargs.pop(_ATTR_COLOR_TEMP) - ) - saturation = 0 - if ATTR_COLOR_TEMP_KELVIN in kwargs: kelvin = kwargs.pop(ATTR_COLOR_TEMP_KELVIN) saturation = 0 diff --git a/tests/components/lifx/test_light.py b/tests/components/lifx/test_light.py index 636ec87dee4..c520df3832f 100644 --- a/tests/components/lifx/test_light.py +++ b/tests/components/lifx/test_light.py @@ -9,7 +9,7 @@ import pytest from homeassistant.components import lifx from homeassistant.components.lifx import DOMAIN -from homeassistant.components.lifx.const import _ATTR_COLOR_TEMP, ATTR_POWER +from homeassistant.components.lifx.const import ATTR_POWER from homeassistant.components.lifx.light import ATTR_INFRARED, ATTR_ZONES from homeassistant.components.lifx.manager import ( ATTR_CLOUD_SATURATION_MAX, @@ -1900,15 +1900,6 @@ async def test_lifx_set_state_kelvin(hass: HomeAssistant) -> None: assert bulb.set_color.calls[0][0][0] == [32000, 0, 25700, 2700] bulb.set_color.reset_mock() - await hass.services.async_call( - DOMAIN, - "set_state", - {ATTR_ENTITY_ID: entity_id, ATTR_BRIGHTNESS: 255, _ATTR_COLOR_TEMP: 400}, - blocking=True, - ) - assert bulb.set_color.calls[0][0][0] == [32000, 0, 65535, 2500] - bulb.set_color.reset_mock() - async def test_infrared_color_bulb(hass: HomeAssistant) -> None: """Test setting infrared with a color bulb."""