Revert "Catch AttributeError on Wink PubNub update" (#4263)

This commit is contained in:
William Scanlon authored and Paulus Schoutsen committed 2016-11-06 20:05:42 -08:00
1 parent 0aba227300
commit 95124c7ddb
2 files changed
+2 -2

No files matched your search

@@ -61,7 +61,7 @@ class WinkBinarySensorDevice(WinkDevice, BinarySensorDevice, Entity):
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)
+1 -1
View File
@@ -111,7 +111,7 @@ class WinkDevice(Entity):
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)