mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +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."""
|
||||
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…
x
Reference in New Issue
Block a user