From 47fb3ba53f18cca1715fdd5f6175621bd43e2f62 Mon Sep 17 00:00:00 2001 From: William Scanlon Date: Fri, 24 Mar 2017 20:14:33 -0400 Subject: [PATCH 1/2] Fix siren/switch attributes and update python-wink --- homeassistant/components/switch/wink.py | 8 ++++---- homeassistant/components/wink.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/switch/wink.py b/homeassistant/components/switch/wink.py index 1f534f7290f77..5d5b477be99a7 100644 --- a/homeassistant/components/switch/wink.py +++ b/homeassistant/components/switch/wink.py @@ -56,10 +56,10 @@ def turn_off(self): @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 diff --git a/homeassistant/components/wink.py b/homeassistant/components/wink.py index 67cfcc7074d1d..92cd7baa65ef6 100644 --- a/homeassistant/components/wink.py +++ b/homeassistant/components/wink.py @@ -15,7 +15,7 @@ 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__) From 825019c68fed9e8dbe8de0a2736fc7d24496f141 Mon Sep 17 00:00:00 2001 From: William Scanlon Date: Fri, 24 Mar 2017 20:18:40 -0400 Subject: [PATCH 2/2] Updated requirements_all.txt --- requirements_all.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_all.txt b/requirements_all.txt index 0c41139c3f483..53ffdac6c3b57 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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