Update python-wink version to fix Dome water valve bug. (#8923)
This commit is contained in:
1 parent
ff3a4637a4
commit
d427063acd
3 files changed
+4
-3
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user