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

pull/121624/head
Joakim Plate 2024-07-09 21:10:15 +02:00 committed by GitHub
parent a4980cf0fd
commit f14777d0ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

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