From 37c09dbdb6f8c102d4b65b53fbbe74268b899c75 Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Tue, 9 Jul 2024 21:10:15 +0200 Subject: [PATCH] Allow ambilight when we have connection (philips_js) (#121620) --- homeassistant/components/philips_js/light.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/philips_js/light.py b/homeassistant/components/philips_js/light.py index 8e500592704..1d63b2062e6 100644 --- a/homeassistant/components/philips_js/light.py +++ b/homeassistant/components/philips_js/light.py @@ -385,6 +385,6 @@ class PhilipsTVLightEntity(PhilipsJsEntity, LightEntity): """Return true if entity is available.""" if not super().available: return False - if not self.coordinator.api.on: + if not self._tv.on: return False - return self.coordinator.api.powerstate == "On" + return True