Allow ambilight when we have connection (philips_js) (#121620)
This commit is contained in:
parent
a4980cf0fd
commit
f14777d0ae
1 changed files with 2 additions and 2 deletions
|
@ -385,6 +385,6 @@ class PhilipsTVLightEntity(PhilipsJsEntity, LightEntity):
|
||||||
"""Return true if entity is available."""
|
"""Return true if entity is available."""
|
||||||
if not super().available:
|
if not super().available:
|
||||||
return False
|
return False
|
||||||
if not self.coordinator.api.on:
|
if not self._tv.on:
|
||||||
return False
|
return False
|
||||||
return self.coordinator.api.powerstate == "On"
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue