Allow ambilight when we have connection (philips_js) (#121620)

This commit is contained in:
Joakim Plate
2024-07-09 21:10:15 +02:00
committed by Franck Nijhof
parent 73d1973625
commit 37c09dbdb6

View File

@@ -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