From 3c5c018e3e1f9950bb35b847b19a8090577e9eae Mon Sep 17 00:00:00 2001
From: Brent <bah2830@users.noreply.github.com>
Date: Tue, 28 Jun 2016 22:26:37 -0500
Subject: [PATCH] =?UTF-8?q?Fixed=20issue=20with=20roku=20timeouts=20throwi?=
 =?UTF-8?q?ng=20exceptions=20when=20roku=20losses=20n=E2=80=A6=20(#2386)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* Fixed issue with roku timeouts throwing exceptions when roku losses networking

* Fixed pylint errors
---
 homeassistant/components/media_player/roku.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/homeassistant/components/media_player/roku.py b/homeassistant/components/media_player/roku.py
index cd16dc4a620..98372a3f65d 100644
--- a/homeassistant/components/media_player/roku.py
+++ b/homeassistant/components/media_player/roku.py
@@ -77,7 +77,8 @@ class RokuDevice(MediaPlayerDevice):
                 self.current_app = self.roku.current_app
             else:
                 self.current_app = None
-        except requests.exceptions.ConnectionError:
+        except (requests.exceptions.ConnectionError,
+                requests.exceptions.ReadTimeout):
             self.current_app = None
 
     def get_source_list(self):
-- 
GitLab