From 0b951b4231d26d3b77a6775a67a4a24fd681a18c Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 2 Dec 2026 08:56:27 +0100 Subject: [PATCH] Use the action field enums in led_infrared (#195938) --- homeassistant/components/led_infrared/light.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/led_infrared/light.py b/homeassistant/components/led_infrared/light.py index 7d0fce6c7017..e5dd8d00acd3 100644 --- a/homeassistant/components/led_infrared/light.py +++ b/homeassistant/components/led_infrared/light.py @@ -4,10 +4,10 @@ from typing import Any, override from homeassistant.components.infrared import InfraredEmitterConsumerEntity from homeassistant.components.light import ( - ATTR_EFFECT, ColorMode, LightEntity, LightEntityFeature, + LightServiceArgument, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback @@ -185,7 +185,7 @@ class LEDIrLightEntity(LEDIrBaseEntity, InfraredEmitterConsumerEntity, LightEnti """Turn device on.""" await self._send_command(self._codes["ON"].to_command()) self._attr_is_on = True - effect: str | None = kwargs.get(ATTR_EFFECT) + effect: str | None = kwargs.get(LightServiceArgument.EFFECT) if effect and effect in self._attr_effect_list: await self._send_command(self._codes[effect.upper()].to_command()) self._attr_effect = effect