Fix wink siren (#6775)
* Fix siren/switch attributes and update python-wink * Updated requirements_all.txt
This commit is contained in:
parent
447048701c
commit
f8005153c9
3 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue