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
This commit is contained in:
William Scanlon 2019-05-06 13:18:17 -04:00 committed by Jason Hu
parent b9a72034f9
commit a0230482bd
3 changed files with 7 additions and 5 deletions

View file

@ -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()

View file

@ -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": []

View file

@ -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