Update python-wink version to fix Dome water valve bug. (#8923)

This commit is contained in:
William Scanlon authored and Fabian Affolter committed 2017-08-11 08:35:45 +02:00
1 parent ff3a4637a4
commit d427063acd
3 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -65,7 +65,8 @@ class WinkToggleDevice(WinkDevice, ToggleEntity):
attributes = super(WinkToggleDevice, self).device_state_attributes
try:
event = self.wink.last_event()
attributes["last_event"] = event
if event is not None:
attributes["last_event"] = event
except AttributeError:
pass
return attributes