diff --git a/homeassistant/components/media_player/roku.py b/homeassistant/components/media_player/roku.py index 35aa07a5a4b..26649d0be96 100644 --- a/homeassistant/components/media_player/roku.py +++ b/homeassistant/components/media_player/roku.py @@ -17,8 +17,8 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv REQUIREMENTS = [ - 'https://github.com/bah2830/python-roku/archive/3.1.2.zip' - '#roku==3.1.2'] + 'https://github.com/bah2830/python-roku/archive/3.1.3.zip' + '#roku==3.1.3'] KNOWN_HOSTS = [] DEFAULT_PORT = 8060 @@ -114,7 +114,8 @@ class RokuDevice(MediaPlayerDevice): if self.current_app is None: return STATE_UNKNOWN - if self.current_app.name in ["Power Saver", "Default screensaver"]: + if (self.current_app.name == "Power Saver" or + self.current_app.is_screensaver): return STATE_IDLE elif self.current_app.name == "Roku": return STATE_HOME diff --git a/requirements_all.txt b/requirements_all.txt index 59927a3672b..df8dc7e77b9 100755 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -208,7 +208,7 @@ https://github.com/Xorso/pyalarmdotcom/archive/0.1.1.zip#pyalarmdotcom==0.1.1 https://github.com/aparraga/braviarc/archive/0.3.6.zip#braviarc==0.3.6 # homeassistant.components.media_player.roku -https://github.com/bah2830/python-roku/archive/3.1.2.zip#roku==3.1.2 +https://github.com/bah2830/python-roku/archive/3.1.3.zip#roku==3.1.3 # homeassistant.components.modbus https://github.com/bashwork/pymodbus/archive/d7fc4f1cc975631e0a9011390e8017f64b612661.zip#pymodbus==1.2.0