mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Allow ambilight when we have connection (philips_js) (#121620)
This commit is contained in:
parent
a4980cf0fd
commit
f14777d0ae
@ -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…
x
Reference in New Issue
Block a user