Skip to content

Commit

Permalink
Allow ambilight when we have connection (philips_js) (home-assistant#…
Browse files Browse the repository at this point in the history
  • Loading branch information
elupus authored Jul 9, 2024
1 parent a4980cf commit f14777d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/philips_js/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,6 @@ def available(self) -> bool:
"""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

0 comments on commit f14777d

Please sign in to comment.