Upgrade pytradfri to 1.0 (#7163)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2017-04-18 20:11:18 -07:00
1 parent e4bbbe20dd
commit 4becfb66e3
3 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -21,7 +21,7 @@ DOMAIN = 'tradfri'
CONFIG_FILE = 'tradfri.conf'
KEY_CONFIG = 'tradfri_configuring'
KEY_GATEWAY = 'tradfri_gateway'
REQUIREMENTS = ['pytradfri==0.4']
REQUIREMENTS = ['pytradfri==1.0']
CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({
@@ -100,10 +100,10 @@ def async_setup(hass, config):
@asyncio.coroutine
def _setup_gateway(hass, hass_config, host, key):
"""Create a gateway."""
from pytradfri import cli_api_factory, Gateway, RequestError
from pytradfri import cli_api_factory, Gateway, RequestError, retry_timeout
try:
api = cli_api_factory(host, key)
api = retry_timeout(cli_api_factory(host, key))
except RequestError:
return False