Don't start the push updater if the Apple TV is 'off' (#6552)

Add an optional extended description…
This commit is contained in:
Jesse Newland 2017-03-13 08:23:15 -05:00 committed by Paulus Schoutsen
parent f4e7b231bc
commit a3a14f9ea4

View File

@ -96,6 +96,7 @@ class AppleTvDevice(MediaPlayerDevice):
@asyncio.coroutine
def async_added_to_hass(self):
"""Called when entity is about to be added to HASS."""
if not self._is_off:
self._atv.push_updater.start()
@callback