From bb8af3a2d5fc97fc4942fbdc4cb1379c745555ac Mon Sep 17 00:00:00 2001 From: pavoni Date: Fri, 8 Jan 2016 16:00:26 +0000 Subject: [PATCH 1/2] Bump pywemo version, turn off polling, tidy trace. --- homeassistant/components/switch/wemo.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/switch/wemo.py b/homeassistant/components/switch/wemo.py index ad21463ea17..ed56305542d 100644 --- a/homeassistant/components/switch/wemo.py +++ b/homeassistant/components/switch/wemo.py @@ -12,7 +12,7 @@ from homeassistant.components.switch import SwitchDevice from homeassistant.const import ( STATE_ON, STATE_OFF, STATE_STANDBY, EVENT_HOMEASSISTANT_STOP) -REQUIREMENTS = ['pywemo==0.3.7'] +REQUIREMENTS = ['pywemo==0.3.8'] _LOGGER = logging.getLogger(__name__) _WEMO_SUBSCRIPTION_REGISTRY = None @@ -69,15 +69,14 @@ class WemoSwitch(SwitchDevice): def _update_callback(self, _device, _params): """ Called by the wemo device callback to update state. """ _LOGGER.info( - 'Subscription update for %s, sevice=%s', - self.name, _device) + 'Subscription update for %s', + _device) self.update_ha_state(True) @property def should_poll(self): - """ No polling should be needed with subscriptions """ - # but leave in for initial version in case of issues. - return True + """ No polling needed with subscriptions """ + return False @property def unique_id(self): From 5a1fed39803e321f579eea2dfbd2041223a97873 Mon Sep 17 00:00:00 2001 From: pavoni Date: Fri, 8 Jan 2016 16:00:56 +0000 Subject: [PATCH 2/2] Bump pywemo version. --- requirements_all.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_all.txt b/requirements_all.txt index 5566e67fb9f..5a31ff4c379 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -173,7 +173,7 @@ hikvision==0.4 orvibo==1.1.0 # homeassistant.components.switch.wemo -pywemo==0.3.7 +pywemo==0.3.8 # homeassistant.components.tellduslive tellive-py==0.5.2