mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Update to the newest python-wink and fix push updates! (#20594)
* Update to the newest python-wink and make post session call to Wink to keep pubnub working. * Update __init__.py
This commit is contained in:
parent
cb07ea0d60
commit
2836ff86fe
@ -25,7 +25,7 @@ from homeassistant.helpers.entity_component import EntityComponent
|
|||||||
from homeassistant.helpers.event import track_time_interval
|
from homeassistant.helpers.event import track_time_interval
|
||||||
from homeassistant.util.json import load_json, save_json
|
from homeassistant.util.json import load_json, save_json
|
||||||
|
|
||||||
REQUIREMENTS = ['python-wink==1.10.1', 'pubnubsub-handler==1.0.3']
|
REQUIREMENTS = ['python-wink==1.10.3', 'pubnubsub-handler==1.0.3']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -358,7 +358,9 @@ def setup(hass, config):
|
|||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
pywink.set_user_agent(USER_AGENT)
|
pywink.set_user_agent(USER_AGENT)
|
||||||
_temp_response = pywink.wink_api_fetch()
|
_temp_response = pywink.wink_api_fetch()
|
||||||
_LOGGER.debug(str(json.dumps(_temp_response)))
|
_LOGGER.debug("%s", _temp_response)
|
||||||
|
_temp_response = pywink.post_session()
|
||||||
|
_LOGGER.debug("%s", _temp_response)
|
||||||
|
|
||||||
# Call the Wink API every hour to keep PubNub updates flowing
|
# Call the Wink API every hour to keep PubNub updates flowing
|
||||||
track_time_interval(hass, keep_alive_call, timedelta(minutes=60))
|
track_time_interval(hass, keep_alive_call, timedelta(minutes=60))
|
||||||
|
@ -1354,7 +1354,7 @@ python-velbus==2.0.21
|
|||||||
python-vlc==1.1.2
|
python-vlc==1.1.2
|
||||||
|
|
||||||
# homeassistant.components.wink
|
# homeassistant.components.wink
|
||||||
python-wink==1.10.1
|
python-wink==1.10.3
|
||||||
|
|
||||||
# homeassistant.components.sensor.awair
|
# homeassistant.components.sensor.awair
|
||||||
python_awair==0.0.3
|
python_awair==0.0.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user