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
|
||||
|
|
|
@ -15,7 +15,7 @@ from homeassistant.const import (
|
|||
from homeassistant.helpers.entity import Entity
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
REQUIREMENTS = ['python-wink==1.2.1', 'pubnubsub-handler==1.0.1']
|
||||
REQUIREMENTS = ['python-wink==1.2.3', 'pubnubsub-handler==1.0.1']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -626,7 +626,7 @@ python-twitch==1.3.0
|
|||
python-vlc==1.1.2
|
||||
|
||||
# homeassistant.components.wink
|
||||
python-wink==1.2.1
|
||||
python-wink==1.2.3
|
||||
|
||||
# homeassistant.components.device_tracker.trackr
|
||||
pytrackr==0.0.5
|
||||
|
|
Loading…
Add table
Reference in a new issue