mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Media player BraviaTv : Try to connect only if tv is not in off state. (#4140)
When HA is restart with the TV in off state there was error log every 10s until the TV is set ON.
This commit is contained in:
parent
df68de8032
commit
1e28851280
@ -219,6 +219,7 @@ class BraviaTVDevice(MediaPlayerDevice):
|
|||||||
def update(self):
|
def update(self):
|
||||||
"""Update TV info."""
|
"""Update TV info."""
|
||||||
if not self._braviarc.is_connected():
|
if not self._braviarc.is_connected():
|
||||||
|
if self._braviarc.get_power_status() != 'off':
|
||||||
self._braviarc.connect(self._pin, CLIENTID_PREFIX, NICKNAME)
|
self._braviarc.connect(self._pin, CLIENTID_PREFIX, NICKNAME)
|
||||||
if not self._braviarc.is_connected():
|
if not self._braviarc.is_connected():
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user