From 4ec93d8e2f7651a8c65d4271f080375a6b0ec552 Mon Sep 17 00:00:00 2001 From: William Scanlon Date: Sun, 6 Nov 2016 20:26:22 -0500 Subject: [PATCH] Revert "Catch AttributeError on Wink PubNub update" --- homeassistant/components/binary_sensor/wink.py | 2 +- homeassistant/components/wink.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/binary_sensor/wink.py b/homeassistant/components/binary_sensor/wink.py index ca88d8f6df8efe..e4448d96e36a7f 100644 --- a/homeassistant/components/binary_sensor/wink.py +++ b/homeassistant/components/binary_sensor/wink.py @@ -61,7 +61,7 @@ def _pubnub_update(self, message, channel): json_data = message self.wink.pubnub_update(json.loads(json_data)) self.update_ha_state() - except (AttributeError, KeyError, AttributeError): + except (AttributeError, KeyError): error = "Pubnub returned invalid json for " + self.name logging.getLogger(__name__).error(error) self.update_ha_state(True) diff --git a/homeassistant/components/wink.py b/homeassistant/components/wink.py index 3d6afe0ef5ac2c..c678024f6a30f0 100644 --- a/homeassistant/components/wink.py +++ b/homeassistant/components/wink.py @@ -111,7 +111,7 @@ def _pubnub_update(self, message, channel): try: self.wink.pubnub_update(json.loads(message)) self.update_ha_state() - except (AttributeError, KeyError, AttributeError): + except (AttributeError, KeyError): error = "Pubnub returned invalid json for " + self.name logging.getLogger(__name__).error(error) self.update_ha_state(True)