From 9d839f1f53b4a1b07e924cad9e3b6a5cef59b0a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20St=C3=A5hl?= Date: Tue, 26 Sep 2017 21:01:17 +0200 Subject: [PATCH] Bump pyatv to 0.3.5 (#9586) --- homeassistant/components/apple_tv.py | 2 +- homeassistant/components/media_player/apple_tv.py | 3 ++- requirements_all.txt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/apple_tv.py b/homeassistant/components/apple_tv.py index 4fce508ba7e..5e02f80f229 100644 --- a/homeassistant/components/apple_tv.py +++ b/homeassistant/components/apple_tv.py @@ -18,7 +18,7 @@ from homeassistant.helpers import discovery from homeassistant.components.discovery import SERVICE_APPLE_TV import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['pyatv==0.3.4'] +REQUIREMENTS = ['pyatv==0.3.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/media_player/apple_tv.py b/homeassistant/components/media_player/apple_tv.py index 6bd962ef443..c2c70984734 100644 --- a/homeassistant/components/media_player/apple_tv.py +++ b/homeassistant/components/media_player/apple_tv.py @@ -96,7 +96,8 @@ class AppleTvDevice(MediaPlayerDevice): if self._playing: from pyatv import const state = self._playing.play_state - if state == const.PLAY_STATE_NO_MEDIA or \ + if state == const.PLAY_STATE_IDLE or \ + state == const.PLAY_STATE_NO_MEDIA or \ state == const.PLAY_STATE_LOADING: return STATE_IDLE elif state == const.PLAY_STATE_PLAYING: diff --git a/requirements_all.txt b/requirements_all.txt index 022e88861af..b3f3398501a 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -567,7 +567,7 @@ pyasn1-modules==0.1.4 pyasn1==0.3.6 # homeassistant.components.apple_tv -pyatv==0.3.4 +pyatv==0.3.5 # homeassistant.components.device_tracker.bbox # homeassistant.components.sensor.bbox