Fix wink siren (#6775)

* Fix siren/switch attributes and update python-wink

* Updated requirements_all.txt
This commit is contained in:
William Scanlon authored and Pascal Vizeli committed 2017-03-25 15:28:16 +01:00
1 parent 447048701c
commit f8005153c9
3 files changed
+6 -6

No files matched your search

+4 -4
View File
@@ -56,10 +56,10 @@ class WinkToggleDevice(WinkDevice, ToggleEntity):
@property
def device_state_attributes(self):
"""Return the state attributes."""
attributes = super(WinkToggleDevice, self).device_state_attributes
try:
event = self.wink.last_event()
attributes["last_event"] = event
except AttributeError:
event = None
return {
'last_event': event
}
pass
return attributes