From 6a8a656fefa9dcca9f4ce6de561cd1d24ed375b4 Mon Sep 17 00:00:00 2001 From: Greg Dowling Date: Mon, 24 Apr 2017 07:18:43 +0100 Subject: [PATCH] Workround for wemo subscription bug. (#7245) --- homeassistant/components/switch/wemo.py | 2 ++ homeassistant/components/wemo.py | 2 +- requirements_all.txt | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/switch/wemo.py b/homeassistant/components/switch/wemo.py index c92523ad705..700d9d25b5a 100644 --- a/homeassistant/components/switch/wemo.py +++ b/homeassistant/components/switch/wemo.py @@ -76,6 +76,8 @@ class WemoSwitch(SwitchDevice): @property def should_poll(self): """No polling needed with subscriptions.""" + if self._model_name == 'Insight': + return True return False @property diff --git a/homeassistant/components/wemo.py b/homeassistant/components/wemo.py index a4b6674af74..98eefbc42d8 100644 --- a/homeassistant/components/wemo.py +++ b/homeassistant/components/wemo.py @@ -14,7 +14,7 @@ from homeassistant.helpers import config_validation as cv from homeassistant.const import EVENT_HOMEASSISTANT_STOP -REQUIREMENTS = ['pywemo==0.4.18'] +REQUIREMENTS = ['pywemo==0.4.19'] DOMAIN = 'wemo' diff --git a/requirements_all.txt b/requirements_all.txt index ddea058959d..bf1b921cc21 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -679,7 +679,7 @@ pyvera==0.2.26 pywebpush==0.6.1 # homeassistant.components.wemo -pywemo==0.4.18 +pywemo==0.4.19 # homeassistant.components.zabbix pyzabbix==0.7.4