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 @property
def device_state_attributes(self): def device_state_attributes(self):
"""Return the state attributes.""" """Return the state attributes."""
attributes = super(WinkToggleDevice, self).device_state_attributes
try: try:
event = self.wink.last_event() event = self.wink.last_event()
attributes["last_event"] = event
except AttributeError: except AttributeError:
event = None pass
return { return attributes
'last_event': event
}

View File

@ -15,7 +15,7 @@ from homeassistant.const import (
from homeassistant.helpers.entity import Entity from homeassistant.helpers.entity import Entity
import homeassistant.helpers.config_validation as cv 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__) _LOGGER = logging.getLogger(__name__)

View File

@ -626,7 +626,7 @@ python-twitch==1.3.0
python-vlc==1.1.2 python-vlc==1.1.2
# homeassistant.components.wink # homeassistant.components.wink
python-wink==1.2.1 python-wink==1.2.3
# homeassistant.components.device_tracker.trackr # homeassistant.components.device_tracker.trackr
pytrackr==0.0.5 pytrackr==0.0.5