Updated Roku IDLE state

pull/5405/head
Bill Nelson 2017-01-17 13:53:35 -08:00
parent 298c1654f8
commit d31f00f672
1 changed files with 2 additions and 1 deletions

View File

@ -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"]:
idle_list = ["Power Saver", "Screensaver", "screensaver"]
if any(idle_type in self.current_app.name for idle_type in idle_list):
return STATE_IDLE
elif self.current_app.name == "Roku":
return STATE_HOME