From a0230482bdbc004ad0291174ab8ec1c9e7402e2d Mon Sep 17 00:00:00 2001 From: William Scanlon Date: Mon, 6 May 2019 13:18:17 -0400 Subject: [PATCH] Use the URL provided by the Wink API for subscriptions. (#23710) * Use the URL provided by the Wink API for subscriptions. * Changed python-wink version --- homeassistant/components/wink/__init__.py | 4 +++- homeassistant/components/wink/manifest.json | 4 ++-- requirements_all.txt | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/wink/__init__.py b/homeassistant/components/wink/__init__.py index 4e25fc4fd0d..30fd0b86e1c 100644 --- a/homeassistant/components/wink/__init__.py +++ b/homeassistant/components/wink/__init__.py @@ -329,8 +329,10 @@ def setup(hass, config): return True pywink.set_user_agent(USER_AGENT) + sub_details = pywink.get_subscription_details() hass.data[DOMAIN]['pubnub'] = PubNubSubscriptionHandler( - pywink.get_subscription_key()) + sub_details[0], + origin=sub_details[1]) def _subscribe(): hass.data[DOMAIN]['pubnub'].subscribe() diff --git a/homeassistant/components/wink/manifest.json b/homeassistant/components/wink/manifest.json index c8951637bde..c837a46e011 100644 --- a/homeassistant/components/wink/manifest.json +++ b/homeassistant/components/wink/manifest.json @@ -3,8 +3,8 @@ "name": "Wink", "documentation": "https://www.home-assistant.io/components/wink", "requirements": [ - "pubnubsub-handler==1.0.3", - "python-wink==1.10.3" + "pubnubsub-handler==1.0.4", + "python-wink==1.10.5" ], "dependencies": ["configurator"], "codeowners": [] diff --git a/requirements_all.txt b/requirements_all.txt index 5b56a3cfabb..4d1e9fc4ff0 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -894,7 +894,7 @@ psutil==5.6.2 ptvsd==4.2.8 # homeassistant.components.wink -pubnubsub-handler==1.0.3 +pubnubsub-handler==1.0.4 # homeassistant.components.pushbullet pushbullet.py==0.11.0 @@ -1426,7 +1426,7 @@ python-vlc==1.1.2 python-whois==0.7.1 # homeassistant.components.wink -python-wink==1.10.3 +python-wink==1.10.5 # homeassistant.components.awair python_awair==0.0.4