Fix wink siren (#6775)

* Fix siren/switch attributes and update python-wink

* Updated requirements_all.txt
This commit is contained in:
William Scanlon 2017-03-25 10:28:16 -04:00 committed by Pascal Vizeli
parent 447048701c
commit f8005153c9
3 changed files with 6 additions and 6 deletions

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