From 7079eda8d99cf190b69b465d391c603c4c12a47d Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 19 Feb 2026 13:39:20 +0100 Subject: [PATCH] Improve type hints in philips_js light (#163448) --- homeassistant/components/philips_js/light.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/philips_js/light.py b/homeassistant/components/philips_js/light.py index 87e3323a30cd..579c43b58cdc 100644 --- a/homeassistant/components/philips_js/light.py +++ b/homeassistant/components/philips_js/light.py @@ -135,6 +135,7 @@ def _average_pixels(data): class PhilipsTVLightEntity(PhilipsJsEntity, LightEntity): """Representation of a Philips TV exposing the JointSpace API.""" + _attr_effect: str _attr_translation_key = "ambilight" def __init__( @@ -213,10 +214,10 @@ class PhilipsTVLightEntity(PhilipsJsEntity, LightEntity): return ColorMode.ONOFF @property - def is_on(self): + def is_on(self) -> bool: """Return if the light is turned on.""" if self._tv.on: - effect = AmbilightEffect.from_str(self.effect) + effect = AmbilightEffect.from_str(self._attr_effect) return effect.is_on(self._tv.powerstate) return False