Allow ambilight when we have connection (philips_js) (#121620)
parent
a4980cf0fd
commit
f14777d0ae
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue