Don't start the push updater if the Apple TV is 'off' (#6552)
Add an optional extended description…pull/6576/head
parent
a358c8e10d
commit
11da7bed12
|
@ -96,7 +96,8 @@ class AppleTvDevice(MediaPlayerDevice):
|
|||
@asyncio.coroutine
|
||||
def async_added_to_hass(self):
|
||||
"""Called when entity is about to be added to HASS."""
|
||||
self._atv.push_updater.start()
|
||||
if not self._is_off:
|
||||
self._atv.push_updater.start()
|
||||
|
||||
@callback
|
||||
def _set_power_off(self, is_off):
|
||||
|
|
Loading…
Reference in New Issue